In the three-component condensation of thiophenecarbaldehyde, cyclohexanone and 3-amino-1,2,4-triazole triazolohexahydroquinazolines are formed, which are isomeric in the type of the ring junction and the double bond position in them, the structure of which is established by 1H NMR spectra. With the GC-EIMS-analysis of the composition of the reaction mass at various temperatures, it has been established that an intermediate in the formation of final products is azomethine (instead of a possible ?,?-unsaturated ketone).