One of the deepest facts in all of physics: whenever current flows through a wire, it wraps the wire in an invisible magnetic field. Coil that wire into many tight turns and the fields from each turn add together into a strong, concentrated field — you’ve built an electromagnet, a magnet you can switch on and off at will.