Livestock – such as cows – produce methane when their stomachs are digesting hard fibres.

Source