In this paper, a nonlinear sliding mode control with variable damping ratio for uninterrupted power system (UPS) is proposed. In this type of sliding mode controller, the sliding surface is designed with the continuous changed parameters. By this way, the system can have the fast responses without overshoot by giving a low damping ratio at initial time and a high damping ratio as the output reaches the set point.