Isotype g-C3N4 heterojunctions were synthesized using melamine as the single-source precursor. Microwave-assisted molten-salt process was developed to form the heterojunctions. The heterojunction consists of isotype triazine-/heptazine based g-C3N4 nanoplates. The g-C3N4 heterojunctions have highly enhanced photocatalytic activity for HER. The efficient separation of photogenerated e−–h+ pairs enhanced its photocatalytic performance.