Biogas is produced by microbes breaking down organic waste in anaerobic conditions, releasing methane gas.