An electromagnetic wave is a combination of an oscillating electric field and oscillating magnetic field that propagates through space, away from its source.
In an electromagnetic wave, the crests and troughs represent oscillating fields.