A relay is a type of switch that is activated by a small current, typically much lower than the current required to operate a typical mechanical switch. The main difference between a relay and a regular switch is that it uses an electromagnet to close or open its contacts, whereas a switch relies on mechanical movement to complete or break a current path. Additionally, it can be configured to function as a normally open (NO) or normally closed (NC) switch, depending on the type of relay.