This paper deals with the application of a sliding and a PI sliding mode strategy to control a three-phase shunt hybrid power filter (SHPF). The SHPF consists of three-leg voltage source inverter (VSI) bridge. The SHPF ensures full compensation of harmonic phase currents and regulates its self sustaining dc bus voltage. The reference currents are obtained from the nonlinear load currents. The control law of the SHPF has a switching component, which incline the system's trajectory on the sliding surface. The stability of the closed loop system is verified by means of Lyapunov stability criterion. An extensive simulation study is carried out to validate the robustness of the proposed control law over a wide range of operation.