How does a relay work?
A relay relies on an internal mechanical switch. In the image above a low current, low voltage signal is delivered from the green wire flowing through to ground. When a signal is sent to the relay the internal switch closes allowing a high current, high voltage signal to flow through another device. These two circuits are electrically separated.