Population growth also creates many essential needs, including the proper disposal of wastewater into sewage networks that will reach water treatment plants (WWTPs). In the treatment process, sludge is generated that has been used mainly as fertilizer in agriculture and in other cases is disposed of and confined, generating costs in its management for local governments. Another need of the population is the availability of energy, which is mainly obtained from fossil fuels such as petroleum and its derivatives, which is becoming increasingly scarce. In this context, the objective of the research was to evaluate the biogas production that can be obtained from the sludge of the Wastewater Treatment Plant (WWTP) of the Municipality of Comas - Lima, Peru. In the research, the physicochemical and microbiological properties of the sludge were characterized and by using biodigesters, biogas composed mainly of CH4, CO2 and O2 was produced. Two samples of 1.7 (M1) and 1.2 kg (M2) of sludge were used in primary anaerobic processes, adding 500 g of vegetable biomass (potato peel, beet leaves) to the M2 sample in the biodigesters with a volume of 20 liters. The biogas generation process was carried out with three repetitions for a period of 60 days at 18 ° C approx., controlling the progress of biogas production every 10 days. As the most optimal result of the biodigesters, biogas was obtained for M2 with 58% methane, 34 % carbon dioxide, which corresponds to a calorific value of 5,800 kcal/m3. Biogas obtained from wastewater treatment plant sludge is a promising alternative as a source of bioenergy with environmental advantages.