Solar energy is a form of renewable energy obtained from the sun that can be converted into heat and electricity. It is produced through solar panels, which use photovoltaic cells to convert sunlight into an electrical current, and solar thermal systems that use the sun's heat to drive steam turbines and generate electricity. While solar energy systems are ineffective at night or when there is little sunlight, solar power production has increased in recent years due to falling prices and gains in efficiency, and it has the potential to generate a meaningful portion of the world's electricity in the future while reducing environmental pollution.