Due to the fluctuation of photovoltaic power generation caused by the change of light intensity and temperature, an energy storage photovoltaic grid connected power generation system is proposed to suppress the fluctuation of grid connected power. Based on the maximum power tracking and grid connected inverter control of photovoltaic power generation, the battery energy storage system is introduced. The system not only has the function of maximum power tracking and grid connected power generation, but also has the function of generating power and stabilizing. In the matla simulation environment, the simulation model of the whole system is established. The simulation results show that the control method proposed in this paper is feasible and effective.