A hydrogen bond based heterojunction photocatalyst is fabricated by planetary milling treatment. The photocatalytic performance for CH3CHO and (CH3)2CHOH degradation is evaluated. The photocatalytic performance for H2O2 generation is detected. Melam/WO3 shows much higher activity than bulk WO3. A mechanism based on hydrogen bond of heterojunction photocatalyst is proposed.