Solar panels convert sunlight into electricity through a process involving silicon semiconductor materials. When silicon is exposed to sunlight, photons free electrons that can be manipulated to flow as direct current. The solar cells use doped silicon to create an electric field that pushes electrons from the n-type to the p-type region, generating a current. An inverter is then used to convert the direct current into alternating current that can power homes and offices. Solar energy is a renewable and clean energy source that has potential to be cost-effective in countries that receive intense sunlight like Sri Lanka.