Cupar is a community, previous royal burgh and also church in Fife, Scotland. It exists between Dundee as well as Glenrothes. According to a 2011 population estimate, Cupar had a population around 9,000, making it the 9th biggest negotiation in Fife, and also the civil parish 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 believed to have expanded around the site of Cupar Castle, which was the seat of the sheriff and also was owned by the earls of Fife. The area became a centre for judiciary as the county of Fife and also as a market town catering for both cattle and also sheep. In the direction of 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 - arranged by Alexander III in 1276 as a predecessor of the Parliament of Scotland. Although created details of a charter for the contemporary town was lost, evidence suggested that this existed as one of the many properties possessed by the Earls of Fife by 1294. Throughout the middle of the 14th century, the burgh started to pay customizeds on gross incomes, which possibly implied that royal burgh condition was approved at some point between 1294 and 1328. The oldest file, referring to the royal burgh, was a grant by Robert II in 1381 to give a port at Guardbridge on the River Eden to help improve trade with Flanders. This grant was formally identified by James II in 1428.