The bottom-up approach through on-surface synthesis of porous graphene nanoribbons (GNRs) presents a controllable manner for implanting periodic nanostructures to tune the electronic properties of GNRs in addition to bandgap engineering by width and edge configurations. However, owing to the existing steric hindrance in small pores like divacancies, it is still difficult to embed periodic divacancies with a nonplanar configuration into GNRs. Here, we demonstrate the on-surface synthesis of atomically precise eight-carbon-wide armchair GNRs embedded with periodic divacancies (DV8-aGNRs) by utilizing the monatomic step edges on the Au(111) surface. From a single molecular precursor correspondingly following a trans-and ciscoupling, the DV8-aGNR and another porous nanographene are respectively formed at step edges and on terraces at 720 and 570 K. Combining scanning tunneling microscopy/spectroscopy, atomic force microscopy, and first-principles calculations, we determine the out-of-plane conformation, wide bandgap (∼3.36 eV), and wiggly shaped frontier orbitals of the DV8-aGNR. Nudged elastic band calculations further quantitatively reveal that the additional steric hindrance effect in the cyclodehydrogenative reactions has a higher barrier of 1.3 eV than that in the planar porous nanographene, which also unveils the important role played by the monatomic Au step and adatoms in reducing the energy barriers and enhancing the thermodynamic preference of the oxidative cyclodehydrogenation. Our results provide the first case of GNRs containing periodic pores as small as divacancies with a nonplanar configuration and demonstrate the strategy by utilizing the chemical heterogeneity of a substrate to promote the formation of novel carbon nanomaterials.