An inverter with an inverter anti-islanding control system, comprising: a phase-shift loop and a drive circuit, wherein the phase-shift loop comprises a first input end, a second input end, a third input end, a fourth input end, a first output end, and a second output end; the drive circuit comprises a first input end, a second input end, a third input end, and an output end; the first output end of the phase-shift loop is connected to the first input end of the drive circuit, and the second output end of the phase-shift loop is connected to the second input end of the drive circuit; the phase-shift loop is configured to perform phase shift conversion on an active voltage instruction U d ∗ and a reactive voltage instruction U q ∗ based on an inverter alternating current end voltage and frequency protection information in a grid connection standard, to obtain a phase-shifted active voltage instruction U ds ∗ and a phase-shifted reactive voltage instruction U qs ∗, wherein U d ∗, U q ∗, the inverter alternating current end voltage, and the frequency protection information in the grid connection standard reach the phase-shift loop respectively through the first input end, the second input end, the third input end, and the fourth input end of the phase-shift loop, U ds ∗ reaches the first input end of the drive circuit through the first output end of the phase-shift loop, and U qs ∗ reaches the second input end of the drive circuit through the second output end of the phase-shift loop; and the drive circuit is configured to generate a drive signal based on U ds ∗, U qs ∗, and the inverter alternating current end voltage, wherein the inverter alternating current end voltage reaches the drive circuit through the third input end of the drive circuit; the drive signal reaches an inverter through the output end of the drive circuit, to drive the inverter to output an alternating current voltage having a second frequency, and the second frequency is used to control a connection between the inverter and an electrical network to be disconnected or maintained. a phase-shift loop and a drive circuit, wherein the phase-shift loop comprises a first input end, a second input end, a third input end, a fourth input end, a first output end, and a second output end; the drive circuit comprises a first input end, a second input end, a third input end, and an output end; the first output end of the phase-shift loop is connected to the first input end of the drive circuit, and the second output end of the phase-shift loop is connected to the second input end of the drive circuit; the phase-shift loop is configured to perform phase shift conversion on an active voltage instruction U d ∗ and a reactive voltage instruction U q ∗ based on an inverter alternating current end voltage and frequency protection information in a grid connection standard, to obtain a phase-shifted active voltage instruction U ds ∗ and a phase-shifted reactive voltage instruction U qs ∗, wherein U d ∗, U q ∗, the inverter alternating current end voltage, and the frequency protection information in the grid connection standard reach the phase-shift loop respectively through the first input end, the second input end, the third input end, and the fourth input end of the phase-shift loop, U ds ∗ reaches the first input end of the drive circuit through the first output end of the phase-shift loop, and U qs ∗ reaches the second input end of the drive circuit through the second output end of the phase-shift loop; and the drive circuit is configured to generate a drive signal based on U ds ∗, U qs ∗, and the inverter alternating current end voltage, wherein the inverter alternating current end voltage reaches the drive circuit through the third input end of the drive circuit; the drive signal reaches an inverter through the output end of the drive circuit, to drive the inverter to output an alternating current voltage having a second frequency, and the second frequency is used to control a connection between the inverter and an electrical network to be disconnected or maintained.