In the process of electric power marketization, virtual power plant (VPP) has the characteristics of flexibility, economy and sustainability, and is a very high-quality electric energy resource. In order to solve the income fluctuation problem of VPP caused by resource uncertainty, a two-stage day-ahead and intraday regulation strategy of VPP for electric energy markets is proposed. In the day-ahead dispatching model, various resources such as new energy predicted output, energy storage and gas engine are integrated, and the power grid is predicted dispatched in order to maximize the market in advance. Then, on the short time scale of the day, aiming at wind-photovoltaic power output deviation, the demand-side interactive resources are introduced to correct the market capacity deviation, aiming at maximizing the actual market income, and giving full play to the flexibility of the VPP to participate in the electric energy markets. Finally, an example is given to verify the effectiveness of the proposed method.