Photoionization is the formation of an ion from a neutral atom due to a photon hitting it with sufficient energy to release an electron. In various disciplines, it is also called the Photoelectric Effect and Bound-Free Absorption. The process is significant in stars and gas clouds, and in observations because it affects the spectrum in ways that can be analyzed.
The photon needs sufficient energy, thus sufficient Frequency and sufficiently small Wavelength to free the electron(s). The energy required depends upon the element and the degree to which the atom is excited, i.e., for Hydrogen in its lowest energy state, 13.6eV (electron volts) is the lower energy limit, whereas if the electron is excited to the next state, which is 10.20eV higher, then only 3.40eV is required.
Photoionization, as the Photoelectric Effect, was first noticed by Heinrich Hertz as a Metal emitting more electrons when light was striking it, and was explained by Einstein in one of his four famous papers of 1905, which won Einstein the Nobel Prize.
Kramers' Opacity Law