Cupar is a community, previous royal burgh as well as parish in Fife, Scotland. It exists in between Dundee as well as Glenrothes. According to a 2011 population price quote, Cupar had a population around 9,000, making it the nine largest settlement in Fife, as well as the civil church a population of 11,183 (in 2011). It is the historical county town of Fife, although the council currently rests at Glenrothes. The town is thought to have grown around the site of Cupar Castle, which was the seat of the constable as well as was had by the earls of Fife. The location became a centre for judiciary as the region of Fife and also as a market town providing for both livestock and also sheep. Towards the last stages of the 13th century, the burgh ended up being the website of an assembly of the 3 estates - clergy, the aristocracy as well as citizens - organised by Alexander III in 1276 as a predecessor of the Parliament of Scotland. Although composed information of a charter for the modern-day town was shed, evidence suggested that this existed as one of the many residential properties had by the Earls of Fife by 1294. During the center of the 14th century, the burgh began to pay customs on taxable incomes, which probably indicated that royal burgh standing was granted sometime in between 1294 and 1328. The oldest record, referring to the royal burgh, was a grant by Robert II in 1381 to provide a port at Guardbridge on the River Eden to assist increase trade with Flanders. This grant was officially identified by James II in 1428.