A novel covalent organic framework polymer material that bears conjugated anthraquinone and triazine units in its skeleton has been prepared via a facile one-pot condensation reaction and employed as an anode material for Li-ion batteries. The conjugated units consist of C═N groups, C═O groups, and benzene groups, which enable a 17-electron redox reaction with Li per repeating unit and bring a theoretical specific capacity of 1450 mA h g-1. The polymer also shows a large specific surface area and a hierarchically porous structure to trigger interfacial Li storage and contribute to an additional capacity. The highly conductive conjugated polymer skeleton enables fast electron transport to facilitate the Li storage. In this way, the polymer electrode shows a large specific capacity and favorable cycling and rate performance, making it an appealing anode choice for the next-generation high-energy batteries.