Methane is a chemical compound with the formula CH4. It is a colorless, odorless gas that is flammable and highly explosive. Methane is the primary component of natural gas, which is used as a fuel source for heating, cooking, and electricity generation. It can also be found in coal beds and other organic materials.