Physicists at the time though that light consisted of waves but according to Albert Einstein, the quanta behaved like discrete particles (Photon).
Atoms not only emit photons but they can also absorb them. In 1905, he wrote a ground-breaking paper that explained that light absorption can release electrons from atoms (Photoelectric effect).