An efficient, modular and straightforwarde ntry to tetrahydropyridines and piperidines is reported. This reaction is based on aformal intramolecular hydroalkylation of readily available,p roperly substituted ynamides which, upon simple activation under acidic conditions,g enerate highly reactive activated keteniminium ions whose reactivity can be finely controlled to induce ar emarkably efficient [1,5]-hydride shift from unactivated CÀHbonds and trigger acationic cyclization which is complete within minutes.