Methane is the primary component and the main energy-producing gas in gobar gas (biogas).