Photovoltaic power generation is a promising method for generating electricity with a wide range of applications and development potential. It primarily utilizes solar energy and offers sustainable development, green environmental benefits, and abundant solar energy resources. However, there are many external factors that can affect the output characteristics of Photovoltaic cells and the effectiveness of the grid-connected control system. This study describes the introduction of Modular Multilevel Converter (MMC) technology into photovoltaic power generation systems to improve power generation efficiency. It proposes optimizing and improving the technology by adjusting the temperature and magnitude of lighting and combining traditional algorithms to propose a composite control algorithm. The photovoltaic power generation system employs the modular multi-level converter technology to enhance power generation efficiency alongside optimization and improvement. The temperature and size of light are regulated alongside the traditional algorithm to introduce the composite control algorithm. The improved composite algorithm surpasses the traditional one after experimental comparison of the results. The testing of a model photovoltaic power grid-connected system shows that the combination of modular multi-level converter technology and a photovoltaic grid-connected system, incorporating composite proportional integral control and quasi-proportional resonant control algorithms, yields improved results and feasibility. With rationality and effective control. The simulation results show that at 0.5 s, the light intensity suddenly increases from 750 to 1000 W/m2, and the direct-current voltage suddenly increases for a short time, but then decreases rapidly and finally returns to a stable level close to the rated voltage. From this, it can be seen that when the light intensity continues to change, the voltage value on the direct-current bus side of this MMC grid-tied photovoltaic system can still be maintained close to the rated value, ensuring the operational stability of the entire system. Sensibly and effectively controlled. The implementation of MMC technology in photovoltaic power generation systems enhances power generation efficiency, whilst simultaneously supporting the advancement of photovoltaic power generation and contributing towards environmental protection in the long term.