The present invention concerns a procedure for the preparation of Imatinib mesylate having a content of residual solvents in compliance with ICH guidelines.In particular, the invention concerns a procedure for the preparation of Imatinib mesylate of formula (I):comprising the treatment of a suspension of Imatinib mesylate in an organic solvent with a crusher/disperser comprising one or more stator combinations and one or more rotors.