Carbon dioxide and carbon monoxide react in sequence in an intramolecular carboxy–carbonylation reaction of N-alkyl-substituted dialkylpropynylamines, under the catalytic action of palladium iodide–potassium iodide in methanol in the presence of oxygen.