Biodegradation process for generating biogas and composting biogas from material including agricultural waste, comprises performing pretreatment step by aerobic composting a material on an open platform, and performing anaerobic methanization of the pretreated material in a methanizer. An independent claim is included for a device for biodegradation process, comprising a sealed composting platform provided with a unit for recovering juice and a device (such as methanizer) for anaerobic fermentation provided with biogas outlet.