Function of a biogas plant

Do you know how a biogas plant works?