a large number of 5G base station are connected, which provides a new possibility for the future low-carbon development of power systems. By encouraging 5G base station to participate in demand response and incorporating it into the Microgrid, it can reduce the power consumption cost of 5G base stations and promote the efficient utilization of renewable energy. Based on the microgrid operation structure, 5G base station and multi-objective problem algorithm, a multi-objective optimization operation model of microgrid access to 5G base station is built. Considering the physical constraints of Microgrid, the objective is to minimize the operating cost and carbon emission. Through the joint dispatching of distributed clean energy generation, micro gas turbine, energy storage system and 5G base station in Microgrid, the comprehensive optimization of system economy and low-carbon benefits can be achieved. In this paper, a microgrid in Beijing is taken as the research object, and the Whale Optimization Algorithm algorithm is used to solve the multiobjective problem. The analysis results show that 5G base station can flexibly respond to microgrid scheduling, which helps microgrid to improve the consumption and utilization efficiency of renewable energy, thus bringing higher economic benefits and low-carbon benefits, and helping China to achieve the goal of carbon peak shaving and carbon neutrality at an early date.