The primary constituent of petroleum is octane. Octane molecules store energy in long chains of chemical bonds. When combined with a proper mix of oxygen and a spark, combustion will release the energy and produce water vapor and C02. Some additional products of incomplete combustion are also created which become pollutants in our environment.
Energy is stored in petroleum because of the movement of space and from the light in the sun