The invention discloses a non-isolated grid-connected inverter with active power decoupling function, comprising: a first inductor, a second power switch, a first power switch, a first diode, a second diode, First decoupling capacitor, second inductor, fourth power switch, third power switch, third diode, fourth diode, second decoupling capacitor, first DC power supply, second DC power supply, filter Capacitor, third inductance, detection circuit, control circuit; the detection circuit is used to detect the first inductance current, the second inductance current, the AC voltage of the power grid, and the grid current, and feed back to the control circuit, and the control circuit will The feedback signal of the detection circuit is converted into a driving signal and sent to the first to fourth power switches. The non-isolated grid-connected inverter with active power decoupling function provided by the present invention has a simple structure, realizes the decoupling of ripple power, and avoids the use of a large-capacity input filter, and is small in size and low in cost. efficient.