In this paper, the voltage and frequency regulation of microgrid with unknown disturbances non-linear dynamics was studied. The disturbance observer designed sliding mode control (SMC) method used to realize secondary frequency. First, a distributed protocol reduce communication burden between generators solve deviations. Second, consensus for designed, based on idea multi-agent consensus, indi...