How are fuels formed? | Where do we get them from?

We need to fill the vehicle with any fuel to go any where. Before thousand lakh years, there were fossils of dead plants and animals which were under the seas and they are changed into fuels by some chemical reactions due to more temperature. They find such places and take out the raw fuels and process them like petrol, diesel etc.