Solar Panels work by allowing particles of light, called photons, to strike electrons off atoms, making a flow of electricity. Solar panels are composed of Photovoltaic cells, small units linked together to transform light to energy. Photovoltaic cells are made of semi-conducting materials. To function, these cells need a electric field. However, the energy needs to be turned into usable power by using Metal conductive plates.
https://www.livescience.com/41995-how-do-solar-panels-work.htmlÂ