The photovoltaic effect is a process where a voltage or electric current is produced when a material is exposed to light. This effect is harnessed in solar panels to generate renewable electricity.