Three-component synthesis of stable ketenimines containing a sulfur group based on a capture profile of a zwitterionic intermediate is described. Thus, the reactions of zwitterions, generated from isocyanide and dialkyl acetylenedicarboxylate, react with alkyl mercaptans in CH2Cl2 to afford ketenimines in good yields. GRAPHICAL ABSTRACT