To solve the problems of unbalanced power market development and many conflicting interests on both the supply and demand sides of energy and power,a two-tier trading strategy of energy and electricity supply and demand is proposed based on the Stackelberg game.First,considering the optimal and the worst power generation conditions on the power generation side,power purchasing agents are introduced to participate in the electricity market trading,and a two-tier Stackelberg game strategy is established with power purchasing agents as the leaders,and power generators and users as subordinates.Second,taking the maximization of their own interests as the optimization objective,the interests of each participant are optimized by continuously adjusting the game strategy.Finally,the uniqueness of the Stackelberg equilibrium solution is proved,and the optimal strategies of each entity are obtained by using a two-layer optimization method.The simulation results show that the proposed game model and optimal strategy can maximize the interests of each party under different generation scenarios,and provide certain solutions for alleviating the conflict of interests between the energy supply and demand parties.