<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 made major contributions to our understanding of electricity and magnetism. His work is considered to be the foundation of modern physics.