An electromechanical relay is a device that uses an electric motor to move a switch, which in turn controls the flow of electricity.