Palladium-catalyzed decarboxylation of 5-methylene-1,3-oxazinan-2-ones and 5-methylene-1,3-dioxan-2-ones to generate aza-π-allylpalladium and oxa-π-allylpalladium 1,4-dipoles for [4 + 2] cycloaddition reaction with 1,3,5-triazinanes was developed, affording a wide range of hexahydropyrimidine and 1,3oxazinane derivatives in good to excellent yields (up to 99%). The acyclic sulfonamido-substituted allylic carbonates as aza-πallylpalladium 1,4-dipole precursors also apply to the developed synthesized strategy, achieving the synthesis of hexahydropyrimidines. Moreover, the in situ-generated aza-π-allylpalladium 1,4dipoles undergoing dimeric [4 + 4] cycloaddition were also demonstrated by the construction of 1,5-diazocane derivatives.