There has been a church on this site since the fifth century, when St. Erat, who was a follower of St Ninian, established a small church here.
You can find out more information on the history of the church at: http://www.inverkeithing-parish-church.org.uk/History.html