Two transition metal phosphonate photocatalysts for H2 evolution and CO2 reduction.