Nature Reviews Materials 1, 15010 (2016)

In the originally published version of this article, the values of the band gaps marked in Figure 4 for g-C3N4, TMP and PMPDI were incorrect. This has been corrected in both the HTML and PDF versions. We apologize to the readers for this error.