An electrostatic protection circuit, wherein the circuit comprises: a protection unit, configured to suppress an electrostatic discharge, ESD, current, wherein a first end of the protection unit is electrically connected to a first pin of a target interface, a second end of the protection unit is electrically connected to a second pin of a protected circuit, the first pin is any pin of the target interface, and the second pin is a pin that is in the protected circuit and that needs to be electrically connected to the first pin; a switch unit, connected to the protection unit in parallel; and a switch control unit, configured to control the switch unit to be open or closed, wherein an input end of the switch control unit is electrically connected to a power pin or a control signal pin of the protected circuit, and an output end of the switch control unit is electrically connected to a control end of the switch unit; at a moment when a peripheral is electrically connected to the target interface, electrostatic charge is discharged by using the protection unit, the switch control unit is configured to control the switch unit to short-circuit the protection unit after the electrostatic charge is discharged, characterised in that, the protection unit comprises a resistor; and a first end of the resistor is the first end of the protection unit, and a second end of the resistor is the second end of the protection unit, wherein the switch unit comprises a first P-channel metal oxide semiconductor, PMOS, transistor and a second PMOS transistor; and a source electrode of the first PMOS transistor is electrically connected to a source electrode of the second PMOS transistor; a gate electrode of the first PMOS transistor is electrically connected to a gate electrode of the second PMOS transistor, to form the control end of the switch unit; a drain electrode of the first PMOS transistor is electrically connected to the first end of the resistor; and a drain electrode of the second PMOS transistor is electrically connected to the second end of the resistor. a protection unit, configured to suppress an electrostatic discharge, ESD, current, wherein a first end of the protection unit is electrically connected to a first pin of a target interface, a second end of the protection unit is electrically connected to a second pin of a protected circuit, the first pin is any pin of the target interface, and the second pin is a pin that is in the protected circuit and that needs to be electrically connected to the first pin; a switch unit, connected to the protection unit in parallel; and a switch control unit, configured to control the switch unit to be open or closed, wherein an input end of the switch control unit is electrically connected to a power pin or a control signal pin of the protected circuit, and an output end of the switch control unit is electrically connected to a control end of the switch unit; at a moment when a peripheral is electrically connected to the target interface, electrostatic charge is discharged by using the protection unit, the switch control unit is configured to control the switch unit to short-circuit the protection unit after the electrostatic charge is discharged, characterised in that, the protection unit comprises a resistor; and a first end of the resistor is the first end of the protection unit, and a second end of the resistor is the second end of the protection unit, wherein the switch unit comprises a first P-channel metal oxide semiconductor, PMOS, transistor and a second PMOS transistor; and a source electrode of the first PMOS transistor is electrically connected to a source electrode of the second PMOS transistor; a gate electrode of the first PMOS transistor is electrically connected to a gate electrode of the second PMOS transistor, to form the control end of the switch unit; a drain electrode of the first PMOS transistor is electrically connected to the first end of the resistor; and a drain electrode of the second PMOS transistor is electrically connected to the second end of the resistor.