Light is both a particle and a wave. In wave form, a beam of light is a travelling wave of electric and magnetic fields. The study of photonics and of optics is hence the study of electromagnetic waves.