Cupar is a community, previous royal burgh as well as parish in Fife, Scotland. It lies in between Dundee and also Glenrothes. According to a 2011 population quote, Cupar had a population around 9,000, making it the 9th largest negotiation in Fife, and the civil parish 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 believed to have actually grown around the site of Cupar Castle, which was the seat of the sheriff and also was possessed by the earls of Fife. The location became a centre for judiciary as the area of Fife and also as a market town providing for both cattle and lamb. In the direction of the last stages of the 13th century, the burgh came to be the website of an assembly of the 3 estates - clergy, the aristocracy as well as burgesses - organised by Alexander III in 1276 as a precursor of the Parliament of Scotland. Although written details of a charter for the contemporary town was lost, proof suggested that this existed as one of the many residential properties owned by the Earls of Fife by 1294. Throughout the center of the 14th century, the burgh began to pay custom-mades on gross incomes, which most likely indicated that royal burgh condition was given at some point between 1294 and 1328. The earliest paper, describing the royal burgh, was a give by Robert II in 1381 to give a port at Guardbridge on the River Eden to help boost trade with Flanders. This grant was officially acknowledged by James II in 1428.