The preparation of non-noble metal catalysts with performance in the oxygen reduction reaction (ORR) com-parable or superior to platinum-based catalysts remains challenging. In the present study, hexaazatriph-enylenehexacarbonitrile (HAT-CN), which is rich in both cyano groups and pyrazine units, was used as the precursor and then cyclotrimerized into a covalent triazine-based framework with a macrocyclic structure con-taining abundant complexation sites for transitional metal ions. Subsequently, a series of non-platinum Co-N-C type catalysts (HAT-CN-Co/C) were prepared, and then pyrolyzed at different temperatures (700 & DEG; C, 800 & DEG;C, and 900 & DEG;C). The pyrolysis treatment endowed the catalysts with activated Co-Nx sites, large pore sizes and high specific surface areas, which can promote oxygen transfer and accelerate the ORR catalytic pro-cess. It is found that the catalyst (HAT-CN-Co/C-800) obtained from pyrolysis at 800 & DEG;C possessed the best ORR activity and followed the four-electrons transfer pathway; the onset potential of ORR was determined as 0.972 V vs reversible hydrogen electrode (RHE), very close to that of Pt/C (0.993 V vs RHE), and the half-wave potential (0.895 V vs RHE) was significantly higher than that of Pt/C (0.859 V vs RHE). Furthermore, the HAT-CN-Co/C-800 catalyst showed good durability (83.2 % current retention after 28000 s) and significant metha-nol tolerance with good application potential as a substitute for the platinum-based ORR catalyst in fuel cell.