The study of the relationship between electricity and magnetism, including the behavior of electromagnetic waves.