By introducing a proper displacement quantity of impurity, this method can be applied in complex spin model. The pairwise entanglement of impurities can be controlled by the coupling and anisotropy of impurity. The singular behaviors of the pairwise entanglement are closely related to the particle excitation.