Construction of Z-scheme photocatalyst is an effective approach for using solar energy to produce hydrogen during water splitting. Herein, 2D/2D WO3 /g-C3 N4 heterojunction photocatalyst was synthesized by a convenient and green method including exfoliation and heterojunction procedures, in the reverse microemulsion system via supercritical carbon dioxide (scCO2 ). The resultant W/CN-10.3 composite exhibited enhanced photocatalytic activities towards the hydrogen evolution during water splitting with a hydrogen evolution rate of 688.51 μmol g-1 h-1 , which was more than 16 times higher than bulk g-C3 N4 with the same loading amount of Pt as cocatalyst. Due to its effective separation of photogenerated carriers and prolonged lifetime, more photoexcited electrons with high reduction ability could contribute to the production of H2 . Possible formation mechanism of 2D-2D WO3 /g-C3 N4 nanosheets via scCO2 in the reverse microemulsion system by the one-pot method has been proposed. This work provides an efficient and green strategy to synthesize 2D-2D heterojunction for the utilization in solar-to-fuel conversion.