Natural gas is a naturally occurring and flammable hydrocarbon gas that is used for fuel. Its primary component is methane, but it can also contain ethane, propane, butane, and pentanes. Impurities including oxygen, hydrogen sulfide (H2S), nitrogen, water, and carbon dioxide (CO2) are often also present.