A chiral ionic liquid-catalyzed, efficient and unprecedented version of the Biginelli reaction using new variants of its active methylene component, viz. 2-phenyl-1,3-oxazol-5-one/2-methyl-2-phenyl-1,3-oxathiolan-5-one, with aromatic aldehydes and urea/thiourea enantio- and diastereoselectively, yields 5-amino-/mercaptoperhydropyrimidines. This three-component domino cyclocondensation reaction is effected via ring transformation of an isolable intermediate in a one-pot procedure.