In this paper, a novel and simple controller for seven-level packed U-cell (PUC) grid-connected inverter is presented. The control method is derived based on sliding mode control theory. Making use of the measured grid voltage and computed reference grid current, the reference value of the inverter output voltage is determined. According to the calculated voltage value, the suitable control set is selected (offline) in order to satisfy the reaching conditions of two separate sliding lines. The sliding lines are defined based on the grid current and the auxiliary capacitor voltage errors. Simulation results are presented to show the effectiveness of the proposed simple controller in tracking the desired values.