The hypervalent iodine reagent PIFA promotes the intramolecular electrophilic cyclization of easily accessible alkynylamides and alkynyl carboxylicacids, leading to the formation of pyrrolidinone and lactone skeletons, respectively, in a very efficient way. A synthetic study and a mechanistic proposal for these transformations are presented.