Hydrocarbon combustion refers to the reaction of hydrocarbons with oxygen that produces carbon dioxide, water, and heat. Hydrocarbons are molecules made of hydrogen and carbon that are the main components of fossil fuels like natural gas, petroleum, and coal. Energy is obtained from burning fossil fuels through the combustion of hydrocarbons, which produces carbon dioxide and water if the combustion is complete.