 The photocatalytic performance of XEN-XCD1-XSDETA nanocomposites is affected by the carrier transfer mechanism at the heterojunction, which changes with the band gap tuning. The Xeno-ZN0.5CD0.5SDETA nanocomposite has the best photocatalytic hydrogen evolution activity under visible light and shows excellent stability after seven cycles. This article was authored by Xun Li, Ting Ding Ma, Jin Feng Zhang, and others.