By the 14th century the city of Cambridge was divided into seven wards, of which the smallest was Barnwell Ward, believed to cover the few houses along the Newmarket Road that fell outside the city's Barnwell Gate. In 1835 the city comprised five wards: East Barnwell, West Barnwell, Market, Trinity, and St. Andrew's, demonstrating the development in the area. Of the city's current fourteen wards, the Barnwell area is covered by the Abbey Ward, which itself takes its name from Barnwell Priory.