Glenrothes is a town situated in the heart of Fife, in east-central Scotland. It had a population of 39,277 in the 2011 census, making it the third largest settlement in Fife and the 18th most populous locality in Scotland. Glenrothes is the administrative capital of Fife, containing the headquarters of both Fife Council and Police Scotland Fife Division and is a major service centre within the area.