Solar energy is that produced by the Sun's light – photovoltaic energy – and its warmth – solar thermal – for the generation of electricity or the production of heat.