Spain generates electricity through hydropower, thermal, and solar sources. Hydropower and thermal are traditional methods that use water and heat respectively to power generators. Spain has also invested in solar energy production to harness its abundant sunlight.