Methane fermentation, which is one of the key processes in biogas production, plays an important role in the conversion of biomass to energy. During this process, changes occur in the chemical composition of organic feedstocks, including the chemical composition of grasses. The assessment of these changes is crucial for the efficiency and productivity of biogas production. The material for this study comprised fully mature grass blades with leaves and inflorescences and was collected from extensively used meadows and pastures, as well as cultivated and set-aside areas in the Wielkopolskie Voivodeship, the communes of Białośliwie and Trzcianka, Poland. The aim of this study was to compare methane fermentation efficiency in nine grass species and identify the biomass component involved in biogas production. The results indicate that the fermentation process, as expected, changed the cellulose content. The lignin content of the grasses before fermentation varied more than the cellulose content. The content of holocellulose (sum of carbohydrate components) in the grasses ranged from 59.77 to 72.93% before fermentation. Methane fermentation significantly reduced the carbohydrate content in the grasses, with a low degree of polymerization. Grassland biomass-based biogas production is a viable alternative to conventional fossil fuels.