Use an output pulse from a digital circuit to controls transistor ON and drive the relay as switch ON-OFF to any circuits or external devices.
The Controlling electronic circuits, Electrical devices in homes or factories. We often use the relay It is a first, though very ancient, relay still have many uses.
A general Relay is a mechanical switch that is closed when currents is sent through