Cambridge is a non-metropolitan district served by Cambridge City Council . Cambridge Local Authority District covers most of the City's urban area but some extends outside this into South Cambridgeshire District. Cambridge is one of five districts within the county of Cambridgeshire, and is bordered on all sides by the mainly rural South Cambridgeshire district. The city council's headquarters are in the Guildhall , a large building in the market square. Cambridge was granted a Royal Charter by King John in 1207, which permitted the appointment of a Mayor,  although the first recorded Mayor, Harvey FitzEustace, served in 1213.  City councillors now elect a mayor annually.