The invention discloses a method for preparing hydrogen peroxide by using a covalent organic framework catalyst to catalyze oxygen reduction, and belongs to the field of electrocatalysis. According to the invention, thieno [3, 2-b] thiophene-2, 5-dicarboxaldehyde (DTDA) is used as a linear construction unit, and 4, 4 ', 4'-tetramethyl-4, 4 ', 4'-tetramethyl-4, according to the preparation method, the COFs material constructed by taking 3, 4 ', 4'-(1, 3, 5-triazine-2, 4, 6-triyl) triphenylamine (TTT), tris (4-aminophenyl) amine (TAPA) and tris (4-aminophenyl) benzene (TAPB) as central constructs respectively is used as a catalyst, oxygen reduction preparation of hydrogen peroxide with high oxygen reduction activity, stability and hydrogen peroxide selectivity is realized, the operation is simple, the controllability is strong, and certain universality is realized.