Article: Solar power is the conversion of sunlight into electricity, either directly using photovoltaics (PV), or indirectly using concentrated solar power (CSP). CSP systems use lenses or mirrors and tracking systems to focus a large area of sunlight into a small beam. PV converts light into electric current using the photoelectric effect.

Now answer this question: How is sunlight converted into electricity?
either directly using photovoltaics (PV), or indirectly using concentrated solar power (CSP)