A fully sp2-carbon conjugated COF (Py-FTP-COF) was designed and synthesized, exhibiting excellent hydrogen evolution rate of 5.22 mmol g-1 h-1. More importantly, in situ hydrogenation of nitroarenes under visible-light irradiation without any additional hydrogen source was successfully accomplished for the first time over COF-based materials.