Dunfermline is a village in Fulton County, Illinois, United States. The population was 262 at the 2020 census. Dunfermline is pronounced Done-ferm-lin.