Electricity and magnetism are closely related and are two aspects of the same phenomenon known as electromagnetism.