Rooftop solar panels rely on the ability of the solar cells to harness the energy of the sun and convert it to electricity. It is a small, square-shaped semiconductor that is made from conductive materials such as silicon. When sunlight strikes the solar cells, it induces chemical reactions that release the electrons, thus generating electric current.