Photocatalytic hydrogen production from seawater holds potential to decrease the use of fresh or pre-treated water. However, direct photocatalytic splitting of seawater currently encounters challenges such as corrosion of catalyst and unsatisfied stability. To address these issues, we have integrated seawater desalination with photocatalytic water vapor splitting for in-situ hydrogen production, while also obtaining freshwater. This approach avoids direct contact between photocatalytic materials and seawater solution, effectively mitigating corrosion and enhancing hydrogen production performance. Based on this design, we constructed a layered structure of photothermal-photocatalytic aerogel material via in-situ synthesis method and designed corresponding device for freshwater-hydrogen coproduction, demonstrating notable hydrogen production rate of 17.94 mmol m