The electromagnetic overflow valve consists of an overflow valve and an electromagnetic directional valve. The electromagnetic reversing valve is directly installed on the relief valve and connected to the remote control port of the relief valve. The system pressure can be remotely controlled by the power signal of the solenoid coil, so that the connection of the remote relief valve can achieve two-stage or three-stage pressure control.