Zn-doped g-C3N4 materials (Zn-g-C3N4) were prepared by a simple mixing and calcination, using dicyandiamide as a precursor and zinc halide as a dopant. The characterization results of CO2 temperature-programmed desorption and elemental analysis revealed that the introduction of Zn species enhanced the overall basic quantity of g-C3N4. In the transesterification of ethylene carbonate with CH3OH to dimethyl carbonate (DMC), the Zn-g-C3N4 catalysts showed superior catalytic activity to the pure g-C3N4, and the highest DMC yield reached 83.3%, along with stable catalytic reusability and reproducibility. Furthermore, other transition-metal halides (including FeCl3, CuCl2, NiCl2, etc.) could be utilized as dopants for g-C3N4, and the obtained doped g-C3N4 materials also showed high EC conversions above 70%. The upgradation of basic quantity of g-C3N4 was attributed to the reaction between metal halide and the active amine species of g-C3N4. Despite their low surface areas, under the same catalytic conditions, Zn-g-C3N4 catalysts demonstrated remarkably higher catalytic activity than other mesoporous carbon nitride materials.