The problem of distribution network operation optimization is diversified and uncertain. In order to solve this problem, this paper proposes a method of distribution network operation optimization considering wind-solar clustering, which includes source load and storage. Taking the total operating cost as the objective function, it includes network loss cost, unit operating cost, and considers a variety of constraints such as energy storage device constraints and demand response constraints. This paper aims to optimize the operation according to different wind-solar clustering scenes to improve the economy of distribution network. Taking the 365-day wind-solar output curves as the research object, K-means clustering is carried out, and the best k value is obtained by elbow rule. The second-order cone programming method and solver are used to solve the optimization model of each typical scenario, and the operation optimization analysis of each typical scenario obtained by clustering is carried out. Taking IEEE33 system and local 365-day wind-solar units output scenes as examples, the period is 24 h, which verifies the effectiveness of the proposed method. The proposed method has guiding significance for the operation optimization of distribution network.