‘Solar chemical’ production can be limited by the need for sacrificial reagents, metal-containing catalysts and low product values. Now, H2O2 is generated from H2O air using lignin as a photocatalyst. Combining with enzymatic catalysis enables selective oxyfunctionalization.