The electric power industry is going through a relatively large transformation period of energy development, and new electric power equipment such as distributed power supply has emerged as the times require. However, there is often a problem of insufficient coordination between the grid frame and distributed power in the main distribution network. This paper starts with the two main stakeholders, namely, the distributed generation operator and the distribution system operator, to build a two-level collaborative planning model for the main distribution network. With the help of particle swarm optimization algorithm and genetic algorithm with improved constraint factors, the model is solved. In the optimization process, two different scenarios are set, including and not including the distributed generation output, for comparative analysis, the comprehensive cost of the collaborative planning model with distributed generation output is less than that of the collaborative planning model with traditional generation output. The results show that the model in this paper can not only optimize the overall line, but also reduce the excessive investment of the main distribution network, which is more in line with the future development of my country’s power industry, can improve the profits of related enterprises, and achieve a win-win effect.