The sp2-hybridization is key to understand structures of 2D materials with light p-block elements. However, hunting for sp2-hybridized 2D materials with heavy p-block elements remains challenging due to weaker π-bonding and increased steric effects. Here we proposed design principles for 2D materials based on carbon nitride with adjacent Lewis-acidic center of group IIIA elements. We introduce a family of 2D materials XB9C4N6 (X = Al, Ga, In and Tl) with high thermodynamic stability. Density functional theory (DFT) calculations reveal that XB9C4N6 exhibit a polycyclic lattice with high delocalized π electrons, primarily from B6 ring, which play the key role in the hole and electron transports. These materials exhibit small electron effective mass of ∼ 0.28 m0, suitable bandgaps of ∼ 1.2 eV and strong light absorption peaks of violet, red and near-infrared lights, which cover the solar spectral irradiance. Notably, AlB9C4N6 emerges as an environmentally friendly semiconductor for electronics and photovoltaic devices. The design principles will enrich the fundamental understanding of π-conjugated heavy p-block elements and family of sp2-hybridized 2D materials.