According to the electromagnetic theory of light, light is categorized as an electromagnetic wave and it is comprised of vibrating electric and magnetic fields that are mutually perpendicular to each other.
The electromagnetic theory of light was introduced by James Clerk Maxwell.