<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 developed a theory of electromagnetism, which is the basis of modern electrical engineering.