Nitrogen-doped 3D graphene frameworks (N-3D GFs) were synthesized by a facile two-step method: Polystyrene (PS) encapsulated in graphene oxide (GO) composites (denoted as PS@GO) are first synthesized, followed by a post–thermal annealing in ammonia step to get N-doped 3D GFs. The resulting N-3D GFs inherit the advantages of graphene, which possesses high electrical conductivity and high specific surface area. Furthermore, the well-defined 3D interconnected structure can facilitate the access of the electrolyte to the electrode surface, thus shortening the diffusion length of both Li+/e−, keeping the overall electrode highly conductive and active in lithium storage. Simultaneously, the in-situ formation of pyridinic N and pyrrolic N in 3D GFs provide high electronic conductivity and structure stability for lithium storage. The designed N-3D GFs electrode delivers a high specific capacity of 1094 mAhg−1 after 100 cycles at 200 mAg−1 and superior rate capability (691 mAhg−1 after 500 cycles at 1000 mAg−1) when used as anode for LIBs. We believe that such an inherently inexpensive, scalable, facile method can significantly increase the feasibility of building high performance energy storage system.