The reaction of 4‐aryl‐6‐bromomethyl‐5‐nitro‐3,4‐dihydropyrimidin‐2(1H)‐ones, containing three possible combinations of substituted and unsubstituted nitrogen atoms with anilines depending on the conditions leads to the products of ring contraction of the pyrimidinone ring into an imidazolone, as well as to the formation of 7‐aryl‐6,7‐dihydroisoxazolo[4,3‐d]pyrimidin‐5(4H)‐one derivatives, and in some cases to the 5‐aminopyrimidinones. The mechanisms of these unusual ring transformations are discussed.