For the access of the microgrid in the distribution network, more safety factors need to be considered for fault recovery, the current fault recovery method has problems such as large amount of calculation and long fault recovery time. take the minimum network loss, the minimum number of switching actions and the minimum power loss as the objective function a fault recovery model of distribution network with microgrid is established, and the improved binary particle swarm algorithm and genetic algorithm are combined to solve the model. Analysis of various failure recovery situations verifies the feasibility of the failure recovery method. The results show that, compared with the traditional restoration method, the proposed method has fast convergence speed, strong adaptability and good restoration effect. This research provides a certain reference for the development of smart grid in my country.