Dunfermline is a town and former Royal Burgh, and parish, in Fife, Scotland, on high ground 3 miles from the northern shore of the Firth of Forth. The 2011 census recorded the town's population at 49,706, however figures released in 2012 estimate Dunfermline's population as 50,380, making it the largest locality in Fife and the tenth largest in Scotland.
The town was first recorded in the 11th century, with the marriage of Malcolm III, King of Scotland, and Saint Margaret at the church in Dunfermline. As his Queen consort, Margaret established a new church dedicated to the Holy Trinity, which evolved into an Abbey under their son, David I in 1128. Following the burial of Alexander I in 1160, the abbey graveyard confirmed its status as the burial place of Scotland's kings and queens up to and including Robert The Bruce in 1329.