Methanogens are archaea that obtain energy through the anaerobic synthesis of methane from carbon dioxide, hydrogen, or organic compounds like acetate. They are strict anaerobes that thrive in environments rich in organic matter like the rumen, wetlands, and sediments. Chemolithotrophs are prokaryotes that obtain energy from the oxidation of reduced inorganic compounds like hydrogen, ammonia, and sulfide while fixing inorganic carbon. They generate ATP through oxidative phosphorylation using electrons from inorganic molecules in their electron transport chain rather than organic nutrients. Methanogens and chemolithotrophs play important ecological roles in biogeochemical cycling through the removal and fixation of compounds.