The condensation of 3-[(alkylsulfanyl)methyl]pentane-2,4-diones with aniline in the presence of catalytic amounts of acetic acid led to the formation of 1,1',1''-(6-methyl-1-phenyl-1,2,3,4-tetrahydropyridine-3,3,5-triyl)triethanone. The reaction is presumably a tandem process, incorporating the formation of beta-enaminone, elimination of the alkanethiol molecule from the beta-enaminone and the starting pentane-2,4-dione, and a subsequent [4+2] cycloaddition of the resulting intermediates. The mechanism of the conversion may also involve intramolecular cyclization of the Michael addition products of 3-[(alkylsulfanyl)methyl]pentane-2,4-dione to 3-(imidoyl)but-3-en-2-one, formed from beta-enaminones during the elimination of alkanethiols.