In this paper, the problem of sliding mode control (SMC) for uncertain T-S (Tagaki-Sugeno) fuzzy systems with input and state delays is investigated , in which the nonlinear uncertain terms are unknown,and also unmatched. For the T-S fuzzy model of the controlled object, a method based on sliding mode compensator is designed, and the system is controlled by sliding mode. Based on solving linear matrix inequalities (LMI), we obtain the design method of sliding mode and controller. The sufficient conditions for the asymptotical stability of the sliding mode dynamics are given by using LMI technique and the Lyapunov stability theory, and it has been shown that the state trajectories can be driven onto the sliding surface in a finite time. Finally, a numerical example is provided to illustrate the effectiveness of the proposed theories.