How does a relay work?

Relays are switches that open and close a circuit when actuated with an electrial signal. An example of this is your driving lights turning on with your highbeams (assuming you have your separate driving light switch enabled). Watch the video below for a quick explanation and an easy diagram to follow.