The discovery of the electromagnetic nature of light is credited to James Clerk Maxwell, a Scottish physicist, who formulated a set of equations known as Maxwell's equations in the 19th century. These equations describe the behavior of both electric and magnetic fields and their interactions, leading to the conclusion that light is an electromagnetic wave.