Molecules have ionization energies, just like atoms do. The ionization energy for molecular oxygen, for example, is 1314 kJ/mol.
This is the amount of energy required to remove one electron from an O2 molecule, forming an O2+ ion. What is the longest wavelength of light that could ionize an O2 molecule?