A Ru(II)-catalyzed migratory insertion of carbene into ortho C−H bonds of 4-aryl-pyrrolo [2,3-d]pyrimidines has been developed. This transformation endows the facile fabrication of C−C bonds with high atom economy, good regioselectivity, and wide functional group tolerance, exploiting the directing properties of pyrimidinic nitrogen. In addition, the planar polycyclic pyrrolo-pyrimido-isoindole framework has been accomplished from a cascade reaction of bromination, cyclization, and decarboxylation of synthesized products. Furthermore, the fluorescence properties of C−N annulated compounds have also been determined, which are valuable in the field of fluorescence properties of heterocycles.