An electromagnetic wave is composed of oscillating electric and magnetic fields.