How do solar panels work?

Solar panels convert sunlight into electricity using photovoltaic cells. When sunlight hits these cells, it generates an electrical current that can be used to power homes or businesses.