Electromagnetic waves, such as light, consist of two perpendicular waves oscillating in tandem. One of the waves is due to the present magnetic field, and the other wave is due to the present electric field. These waves are perpendicular to each other, in addition to being perpendicular to the direction of motion of the wave, as depicted below.