Magnetism is caused by the alignment of electron spins in atoms. Natural magnets were first discovered in Magnesia, and the Chinese were the first to observe that magnetism could be induced in iron rods near these natural magnets. Michael Faraday established that changing magnetic fields induce electric currents based on electromagnetic induction. This principle led to technologies like generators and transformers that are crucial to modern electricity generation and distribution.