The high porosity of a GaN porous structure (PS) makes it mechanically semi-flexible and can shield against the stress from the thick growth template on an overgrown layer to control the lattice structure or composition within the overgrown layer. To understand this stress shield effect, we investigated the lattice constant variations among different growth layers in various samples of overgrown Al0.3Ga0.7N on GaN templates under different strain-relaxation conditions based on d-spacing crystal lattice analysis. The fabrication of a strain-damping PS in a GaN template shields against the stress from the thick GaN template on the GaN interlayer, which lies between the PS and the overgrown AlGaN layer, such that the stress counteraction of the AlGaN layer against the GaN interlayer can reduce the tensile strain in AlGaN and increase its critical thickness. If the GaN interlayer is thin, such that a strong AlGaN counteraction occurs, the increased critical thickness can become larger than the overgrown AlGaN thickness. In this situation, crack-free, thick AlGaN overgrowth is feasible.