One of the main problems in the future about the development of micro-grid is the stability of micro-grid with static synchronous compensators(STATCOM).In this paper, a two-degree-of-freedom internal model control (2DOF-IMC) controller,which can improve the tracking performance and robustness of STATCOM,is designed to replace traditional PI controller in STATCOM to steady voltage of micro-grid.Compare and analyze the effects of STATCOM with two controllers on the voltage stability of islanded micro-grid by impedance method.The analysis and simulate results show that STATCOM with 2DOF-IMC controller can effectively improve the stability of the microgrid voltage.