As a nonlinear control strategy, sliding mode control (SMC) is developed in electrical drivers. Although many new SMC methods have been devised, the research on its response speed and disturbance is still not so much. Consequently, this article established a MPPT controller based on SMC in PV system and studied the controller's performance when light flicker emphatically. Moreover, analysis on the influence of the inverter to the output stage of boost circuit has also been done in this paper. By analysis of the simulation results in different situations, the novel control scheme has obvious advantages to achieve MPPT and grid inverter control for grid-connected PV system.