A NiFe2O4–graphene heteroarchitecture with differing graphene content is prepared by a straightforward hydrothermal strategy. The NiFe2O4–graphene (with 20 wt% graphene) nanocomposite as the anode material for lithium-ion batteries shows a high specific reversible capacity up to 960mAhg−1 with good cycling stability and rate capability. The superior electrochemical performance of the NiFe2O4–graphene nanocomposite can be attributed to its unique heteroarchitecture, which enables high utilization of active material, good structural stability and fast charge transport.