Ammonium salts of -functionalized allylic amines 1 were successfully employed as electrophilic agents with functional thiols. The obtained intermediate 2 underwent intramolecular cyclization in the presence of potassium tert-butoxide to afford 2,4-disubstituted tetrahydrothiophenes 3.