<human>:  Who discovered the law of electromagnetism?
<bot>: The law of electromagnetism was discovered by James Clerk Maxwell in the 19th century. Maxwell was a Scottish physicist who worked on the theory of electromagnetism and light. He was also the first to develop a theory of electromagnetism that included both electric and magnetic fields. Maxwell's theory of electromagnetism was the foundation for Einstein's theory of relativity.