How is methane gas made?

Methane gas is primarily extracted from natural gas fields or produced through the anaerobic decomposition of organic matter in landfills and wastewater treatment plants.