Dunfermline (/dʌnˈfɜːrmlɪn/ ; Scots: Dunfaurlin, Scottish Gaelic: Dùn Phàrlain) is a city, parish, and former royal burgh in Fife, Scotland, 3 miles (5 km) from the northern shore of the Firth of Forth. Dunfermline was the de facto capital of the Kingdom of Scotland between the 11th and 15th centuries.
To the south of Dunfermline is the town of Rosyth. To the north are the villages of Townhill, Wellwood and Kingseat. To the west are the towns of Crossford and Oakley. And to the east are Cowdenbeath and Crossgates.
