This paper reviews the effects of resonant magnetic perturbation(RMP)on classical tearing modes(TMs)and neoclassical tearing modes(NTMs)from the theory,experimental discovery and numerical results with a focus on four major aspects:(i)mode mitigation,where the TM/NTM is totally suppressed or partly mitigated by the use of RMP;(ii)mode penetration,which means a linearly stable TM/NTM triggered by the externally applied RMP;(iii)mode locking,namely an existing rotating magnetic island braked and finally stopped by the RMP;(iv)mode unlocking,as the name suggests,it is the reverse of the mode locking process.The key mechanism and physical picture of above phenomena are revealed and summarized.