Magnetic or reed switches use a pair of ferromagnetic contacts that open or close in response to the presence of a magnetic field. When a magnet approaches, the contacts attract and close the circuit; when the magnet moves away, the contacts spring apart, opening the circuit. Reed switches offer advantages like sensitivity, low power consumption, and reliability. They are used in applications like door and window sensors, security systems, and proximity switches where simple, robust switching is required.