The invention discloses a protection circuit of a switch power supply. The protection circuit comprises a rectification diode D, a switch K, a relay J, a resistor R1, a resistor R2, a resistor R3, a capacitor C1, and a capacitor C2, a port a and a port b of the rectification diode D are respectively connected with alternating current power supply terminals Uia and Uib, a port c of the rectification diode D is connected with a voltage output terminal Uoutb, a port d of the rectification diode D is connected with one terminal of the resistor R1, the other terminal of the resistor R1 is connected with a voltage output terminal Uouta and one terminal of the resistor R2, the other terminal of the resistor R2 is connected with one terminal of the relay J and one terminal of the resistor R3, the other terminal of the relay J and the other terminal of the resistor R3 are both connected with the port c of the rectification diode D, the resistor R3 is connected with the capacitor C1 in parallel, the resistor R1 is connected with the switch K in parallel, and the capacitor C2 is connected between the voltage output terminals Uouta and Uoutb. According to the protection circuit, high surge current generated during power-up of the switch power supply can be reduced to an allowed range, the damage to the switch power supply by the high surge current can be avoided, and the service lifetime of the switch power supply is extended.