We numerically study the dynamics of spiral waves in the excitable system with the excitability modulated by a rectangle wave. The tip trajectories and their variations with the modulation period T are explained by the corresponding spectrum analysis. For a large T , the external modulation leads to the occurrence of more frequency peaks and these frequencies change with the modulation period according to their specific rules, respectively. Some of the frequencies and a primary frequency f 1 determine the corresponding curvature periods, which are locked into rational multiplies of the modulation period. These frequency-locking behaviours and the limited life-span of the frequencies in their variations with the modulation period constitute many resonant entrainment bands in the T axis. In the main bands, which follow the relation T / T 12 = m / n , the size variable R x of the tip trajectory is a monotonic increasing function of T . The rest of the frequencies are linear combinations of the two ones. Due to the complex dynamics, many unique tip trajectories appear at some certain T . We find also that spiral waves are eliminated when T is chosen from the end of the main resonant bands. This offers a useful method of controling the spiral wave.