Photons are little bits of light. Photons carry energy.
When a photon hits a molecule, it adds energy to the molecule. The molecule has chemical bonds (they work a bit like stretchy rubber bands!) holding its atoms together. Sometimes the energy from the photon breaks the bond between some of the atoms in a molecule. The atoms fly apart! This is called photodissociation.