This short paper addresses the synchronization problem for a class of complex networks with time delays. In the model studied in this paper, the coupling of nodes is nonlinear, because many network nodes, the dynamic characteristics of complex, if only rely on the network itself, it is difficult to achieve synchronization. Aiming at this kind of complex network with time delay, we control some nodes of the network through pinning control, so that the state of the whole network nodes can achieve synchronization. In addition, we give the sufficient conditions for the synchronization of complex networks with time delays, and use Lyapunov function and inequality principle to carry out theoretical analysis. Finally, an example is presented to illustrate the effectiveness of the theoretical results.