When light hits solar cells, so-called electron-hole pairs are created: the electrons are excited and can move almost freely in the material—i.e. to generate electricity. The electrons will leave ‘positive gaps,” so-called holes, in the semiconductor material. They can also move through the material. Both electrons and holes carry an electrical charge. They deform the surrounding atomic lattice on their way through the material slightly.
Source:: Science – Space – phys