One of the main sources of electricity generation is solar and wind energy, which are renewable energies that minimize environmental impact and are inexhaustible, which can serve the sustainability of energy, ecology and economy. Therefore, the objective of this research was to implement a wind-solar hybrid system to generate electricity in the rural community of Llanavilla in the district of Villa el Salvador in Lima, Peru. It was identified that the area had an average wind speed of 2.94 m/s, and this was exploited by means of a wind turbine with blades adapted to an alternator. On the other hand, a 100W/12V solar panel was adapted to capture solar energy from the study area. All the energy from the wind-solar hybrid system was stored in two 7Ah batteries. The results showed that the wind system presented a maximum current intensity of 1.03 A and the solar system generated a maximum of 5.72 A, generating an electrical power in the range of 40 to 80 watts/day. Finally, it is concluded that the wind-solar hybrid systems have great potential to generate electricity that could be used by the population and are economically beneficial. In addition, they contribute to the minimization of environmental impacts by using renewable natural energy sources.