Cupar is a community, previous royal burgh as well as church in Fife, Scotland. It lies between Dundee and Glenrothes. According to a 2011 population price quote, Cupar had a population around 9,000, making it the 9th biggest settlement in Fife, and also the civil church a population of 11,183 (in 2011). It is the historical county town of Fife, although the council currently sits at Glenrothes. The town is thought to have actually expanded around the site of Cupar Castle, which was the seat of the constable and was owned by the earls of Fife. The area ended up being a centre for judiciary as the region of Fife and as a market town providing for both cattle and also lamb. Towards the last stages of the 13th century, the burgh ended up being the website of an assembly of the 3 estates - clergy, nobility and also citizens - organised by Alexander III in 1276 as a precursor of the Parliament of Scotland. Although written info of a charter for the modern community was lost, proof suggested that this existed as one of the many residential properties possessed by the Earls of Fife by 1294. During the middle of the 14th century, the burgh started to pay custom-mades on gross incomes, which possibly meant that royal burgh standing was given at some point between 1294 as well as 1328. The earliest file, referring to the royal burgh, was a give by Robert II in 1381 to provide a port at Guardbridge on the River Eden to assist improve trade with Flanders. This grant was officially recognised by James II in 1428.