It is an electromechanical part which use in electrical circuits is like a simple key, by the difference that unlike a key that should be operated manually to open and close but in a relay opening and closing is done by electric current.