The present work summarizes different sources of biomass used as raw material for the production of biogas, focusing mainly on the use of plants that do not compete with the food supply. Biogas obtained from edible plants entails a developed technology and good yield of methane production; however, its use may not be sustainable. Biomass from agricultural waste is a cheap option, but in general, with lower methane yields than those obtained from edible plants. On the other hand, the use of algae or aquatic plants promises to be an efficient and sustainable option with high yields of methane produced, but it necessary to overcome the existing technological barriers. Moreover, these last raw materials have the additional advantage that they can be obtained from wastewater treatment and, therefore, they could be applied to the concept of biorefinery. An estimation of methane yield per hectare per year of the some types of biomass and operational conditions employed is presented as well. In addition, different strategies to improve the yield of biogas, such as physical, chemical, and biological pretreatments, are presented. Other alternatives for enhanced the biogas production such as bioaugmentation and biohythane are showed and finally perspectives are mentioned.