Dear student,
Solar energy is converted to electricity through solar powered photovoltaic cells (PV)cells or panles which convert solar energy into electricity.The silicon cells electrons are excited by using the photons of the light from the sun.
Regards