Internal combustion engines.

Early automobile designers chose internal combustion engines due to their low cost and high energy output.

Burning either gasoline or diesel fuel in the combustion chamber produces a controlled explosion of expanding gas. 
Gasoline and diesel fuel are refined from petroleum.  This is known as fossil fuel..

Petroleum is produced when plant and animal material decays and becomes buried beneath the ground..  The process takes millions of years.