Lithium-ion batteries are heralded as potential candidates for large-scale energy storage applications. The low specific capacity or poor cyclability of commonly used anodes limit the extensive application of lithium-ion batteries. In this context, organic molecules can offer a potential solution to extend the scope of lithium-ion battery application. In this work, we demonstrate the synthesis and electrochemical properties of a nitrogen-rich, n-type porous organic polymer bearing BIAN and melamine moieties (PBM). The PBM exhibits a porosity of 1.5 nm and excellent electrochemical performance in terms of its rate capability, cycling behavior, and capacity. The anodic half-cell of the PBM active material delivers specific capacities of 850 mAh/g at 400 mA/g, 740 mAh/g at 750 mA/g, and 300 mAh/g at 1000 mA/g current densities with an excellent cyclability over 3000, 2000, and 1100 cycles, respectively, at each current density. Thus, this material is a promising candidate as an anodic material in lithium-ion batteries.