Spain generates electricity through hydroelectric, solar, and thermal means. Hydroelectric power utilizes water resources to generate electricity. Solar power captures energy from the sun using photovoltaic panels. Thermal plants burn fossil fuels to power steam turbines that generate electricity.