Electricity has been studied since antiquity but was not fully understood until the 17th and 18th centuries. In 1820, Hans Christian Oersted discovered that an electric current can deflect a compass needle, showing the link between electricity and magnetism. Today, electricity produced from various energy sources is central to daily life, powering homes and industry.