For the problem of congestion control in transmission control protocol(TCP) networks, a sliding mode active queue management(AQM) algorithm based on T-S fuzzy model is proposed. Considering the uncertainties and time-varying delays in TCP networks, a T-S fuzzy model is obtained for nonlinear TCP networks model. An asymptotically stable sliding surface is designed by using LMI. Moreover, a reaching condition is presented in order to further constrain chattering. Based on the reaching condition, the controller can constrain the oscillation of the queue length in router effectively. Simulation results show that the proposed algorithm has better stability and robustness than common sliding mode AQM algorithm.