Photovoltaics is the technology that converts sunlight directly into electricity using semiconducting materials like silicon, commonly used in solar panels.