A well-ordered mesoporous carbon nitride material has been prepared by the polymerization reaction between ethylenediamine and carbon tetrachloride. This material has a highly ordered hexagonal pore system (see Figure), a high surface area, a large pore volume, and a uniform mesopore size distribution. Potential applications include use in catalytic supports, gas storage, lubricants, and drug delivery.