This paper studies the iterative learning control (ILC) for a class of second‐order nonlinear hyperbolic impulsive partial differential systems. Firstly, to follow the discontinuous desired output, a P‐type learning law is adopted, and sufficient conditions for the convergence of the tracking error is established under identified initial state value. The rigorous analysis is also given using the impulsive Gronwall inequality. Secondly, the tracking error of output trajectory is considered in systems with state initial values shifting based on an initial learning algorithm. These results of this paper show that the tracking error on the finite time interval can uniform converge to 0 as the iteration index goes to infinity if impulse number of the systems is only a finite numbers. Finally, two numerical simulation examples are given to verify the effectiveness of the theoretical results.