A wide visible-light-responsive tunneled MgTa₂O(6-x)N(x) photocatalyst for water oxidation and reduction.