The palladium(II)-catalyzed direct oxidative C–H olefination of readily available N-tosylacrylamides and allenoates for the synthesis of dienyl esters is described. The amide and ester moieties both act as the directing groups for the regio- and the stereo-controlled C–H functionalization/cyclization, which was proved by DFT calculations. Molecular oxygen was used as the terminaloxidant in the approach