Step 1: Origin of fossil fuels.
Fossil fuels are formed from plants and animals buried under the earth millions of years ago.
Step 2: Energy source.
Plants get their energy through photosynthesis from the sun. That energy is trapped and stored in fossil fuels.
Step 3: Conclusion.
Thus, the Sun is the ultimate source of fossil fuel energy.