A solar cell directly converts solar energy (light/photons) into electrical energy through the photovoltaic effect. When photons strike the semiconductor material (usually silicon), they excite electrons, generating a flow of electric current. This is not a thermal conversion process.