A variety of ketoximes, easily prepared from the corresponding ketones, undergo the Beckmann rearrangement upon treatment with 2,4,6-trichloro[1,3,5]triazine in N,N-dimethylformamide at room temperature in excellent yields. This procedure can be applied to aldoximes for obtaining the corresponding nitriles.