Fossil fuels are hydrocarbons comprised primarily of the following elements: carbon and hydrogen and some sulfur, nitrogen, oxygen, and mineral matter. Mineral matter turns into ash when burnt. Hope this helped. If you have spare time please like this comment or give it the brainlyist if you think it was helpful