When a photon collides with an electron, some of its energy is used to remove the electron. The photon's remaining energy is transferred to a free negative charge known as a photoelectron.