The structural design and element regulation of the electrode materials is considered an effective strategy to improve the energy storage performance. In this paper, we developed a boron and nitrogen double‐doped carbon flower by in‐situ polymerization and high‐temperature carbonization. As an anode electrode material for lithium‐ion batteries, it shows a high first discharge capacity of 885.9 mA h g−1, and still maintained 416 mA h g−1 after 450 cycles. Furthermore, it exhibits excellent capacitance (182 mA h g−1) at the high current density (2 A g−1) and even after 3000 cycles. The unique flower structure reduces ion diffusion distance, and the boron and nitrogen atoms provide more active sites, which endow the boron and nitrogen double‐doped carbon flower with the excellent electrochemical performance. Therefore, the in‐situ polymerization is a good scheme to prepare heteroatom double‐doped nanocarbon materials with the high energy capacity.