Dunfermline (/dʌnˈfɜːrmlɪn/ (listen); Scots: Dunfaurlin, Scottish Gaelic: Dùn Phàrlain) is a town and former Royal Burgh, and parish, in Fife, Scotland, on tall ground 3 miles (5 km) from the northern shore of the Firth of Forth. The town recorded a population of 50,380 in 2012, making it the most populous locality in Fife and the 11th most populous in Scotland.
The outdated known settlements in the area around Dunfermline probably date as far back up as the Neolithic period. The Place was not regionally significant until at least the Bronze Age. The town was first recorded in the 11th century, with the marriage of Malcolm III, King of Scots, and Saint Margaret at the church in Dunfermline. As his Queen consort, Margaret standard a new church dedicated to the Holy Trinity, which evolved into an Abbey under their son, David I in 1128. During the reign of Alexander I, the church – later to be known as Dunfermline Abbey – was firmly acknowledged as a prosperous royal mausoleum for the Scottish Crown. A sum of eighteen royals, including seven Kings, were buried here from Queen Margaret in 1093 to Robert Stewart, Duke of Albany in 1420. Robert The Bruce, otherwise known as Robert I, became the last of the seven Scottish Kings to be buried in 1329. His bones would eventually be re-discovered and re-buried in 1821, when the excavation of the grounds of what had formerly been the eastern section of the Abbey became the site for the supplementary Abbey Church.
The town is a major service middle for west Fife. Dunfermline retains much of its historic significance, as capably as providing facilities for leisure. Employment is focused in the foster sector, with the largest employer beast Sky UK. Other large employers in the Place include Amazon (on-line retailer), Best Western (hotels), CR Smith (windows manufacturing), FMC Technologies (offshore energy), Lloyds and Nationwide (both financial services).