Inverkeithing (/ˌɪnvərˈkiːðɪŋ/ About this sound listen ) is a town and a royal burgh in Fife, Scotland, located on the Firth of Forth. According to population estimates (2006), the town has a population of 5,265. The port town was given burgh status by King David I of Scotland (1124–53) in the 12th century and is situated about 9 miles (15 km) north from Edinburgh Airport and about 4 miles from the centre of Dunfermline.