Aryl-substituted triazolohexahydroquinazolines have been synthesized by means of three-component condensation of pnitro(pbromo) benzaldehydes, cyclohexanone, 1,2,4-triazol-3-amine. A scheme of the reaction mechanism is proposed, which makes it possible to explain the features of the behavior of p-nitro(bromo) benzaldehydes in condensation reactions in comparison with their ortho-substituted analogs.