The invention discloses a solar driven device and method for treating wastewater and producing hydrogen by coupling. The device comprises a stereocatalytic electrode reactor and photovoltaic, pipeline, water storage, and hydrogen collection systems, wherein the stereocatalytic electrode reactor comprises a monovalent cation exchange membrane and cathode and anode chambers, and cathode and anode plates are respectively arranged in the cathode and anode chambers; the cathode and anode chambers are respectively filled with supported activated carbon particles to form stereocatalytic electrode anode and cathode groups, and the photovoltaic system comprises a solar photovoltaic panel, a regulated power supply, and a single pole double throw switch; the pipeline system comprises a wastewater inlet and outlet pipe, a wastewater introduction pipe and pump, a wastewater return pipe, a wastewater outlet valve, a dilute alkali liquid introduction pipe and pump, a concentrated alkali liquid returnpipe, and a concentrated alkali liquid outlet pipe and valve, and the water storage system comprises wastewater and alkali liquid storage tanks; the hydrogen collection system comprises a hydrogen tank and an air duct. The solar energy is driven to treat wastewater, the COD removal rate of an effluent is 70% to 80%, and the hydrogen production amount is 1 to 2 L/h.