Solar energy is the energy that comes from the sun and is a renewable energy source. When sunlight passes through the Earth's atmosphere, it becomes visible light and infrared radiation. Plants use this energy to create sugar and starches, which is called photosynthesis. Solar cell panels then convert this energy into electricity.