When the distributed generation (DG) operates in the islanding mode, due to the fluctuation of the load and the different impedance of the feeder connected to the common bus of the distributed generation, it is difficult for each power generation unit to share the system load in a balanced manner. To this end, a distributed collaborative control framework for AC microgrid is proposed to help the system share power equally and stabilize the output voltage and frequency of each DG. Each DG exchanges information with adjacent agents through the constructed microgrid multi-agent communication network, introduces a consensus algorithm to dynamically adjust the virtual impedance of the feeder, corrects the voltage and frequency reference values, and realizes the power ratio of the internal power generation units in the microgrid, and the voltage and frequency recovery. Finally, the feasibility of the proposed strategy is verified by Matlab simulink simulation.