Metal/semiconductor heterojunction systems have demonstrated outstanding photocatalytic performance owing to the Mott–Schottky effect enabled by nitrogen-doped carbon.