Inspired by the direct charge transfer in the natural photosystems, herein, we design covalent triazine frameworks (CTFs) with direct electron transfer by constructing the minimal amount of -donor-acceptor 1-acceptor 2- type moieties in the CTF backbone for photocatalytic hydrogen evolution. By introducing only 0.75% of the acceptor 2, the as-prepared CTF exhibited an enhanced hydrogen evolution rate of 3215 μmol g-1 h-1.