Anaerobic decomposition of organic matter in waterlogged environments like swamps, marshes, and bogs is the primary natural process generating methane.