Sunlight is made up of photons. Photons contain various amounts of energy, corresponding to the different wavelengths of the solar spectrum. So, when Photons strike a Solar PV Cell (a semiconductor), they get reflected or absorbed or pass through. The absorbed photon’s energy when knock an electron in an atom of PV cell it frees the electron from atom, thus generating a flow of electricity. This way Solar PV Module convert sun’s energy into direct current (DC). But As most homes and business run on alternating current, So, the DC current is then passed through an Inverter to convert it into usable AC current. At that point, you either use the electricity in your house or send it back to the electric grid.