Petrol consists mainly of hydrocarbons. Hydrocarbons are organic compounds made up of carbon and hydrogen atoms only. In the case of petrol, these hydrocarbons are typically made up of between 5 and 12 carbon atoms per molecule, with some additional small amounts of other compounds. When petrol is burned in an engine, the hydrocarbons react with oxygen in the air to produce energy, carbon dioxide, and water vapor.