A fossil fuel is a carbon compound- or hydrocarbon-containing material formed naturally in the Earth's crust from the buried remains of prehistoric organisms, a process that occurs within geological formations.