When a small current flows through the first circuit, it activates the electromagnet, generating a magnetic field. This attracts a contact in the second circuit, closing the switch and allowing a much bigger current to flow through the second circuit.