Maxwell derived a set of equations that unified electricity, magnetism and light as manifestations of electromagnetic waves. His equations predicted that changes in electric and magnetic fields propagate as waves at the speed of light. This supported Maxwell's theory that light itself is an electromagnetic wave. The electromagnetic spectrum encompasses all possible frequencies of electromagnetic waves, from radio waves to gamma rays. Maxwell's equations form the basis for the modern understanding of electromagnetism and optics.