This paper proposes a new method to design suboptimal sliding manifolds for a class of nonlinear uncertain systems with state and input delays. A switching control law is obtained based on the designed suboptimal sliding manifold. It is proved that the proposed method is able to guarantee the stability of the closed-loop system in the presence of uncertainty. Three numerical simulations are given to illustrate the effectiveness of the proposed method.