3D graphene oxide/WS2/Mg-doped ZnO composites were prepared by electrostatic self-assembly and coprecipitation methods. A significant photocatalytic activity enhancement of rGWMZ was observed. The enhancement for photocatalytic activity is ascribed to the synergistic effect of rGO and WS2 nanosheets.