Solar-driven oxidative coupling of methane is a promising approach to synthesize important C2+ products, yet poor efficiency limits its application. Now, a TiO2 membrane loaded with Au nanoclusters, which act as hole acceptors and catalytic centres, achieves high yield and selectivity in C2+ production.