A pure NiFe 2 O 4 spinel has been prepared from an Ni–Fe 2+ –Fe 3+ –LDHs precursor under mild conditions for use as the anode material in Li-ion batteries. XRD, elemental analysis and a combination of TG–DTG–DTA and evolved gas mass spectrometry (EGMS) were carried out to characterize the calcined products. The main factors, affecting the electrochemical performance of the materials, were investigated. The material calcined at 700 °C for 3 h performs best with an initial discharge capacity of 1239 mAh g −1 and a reversible capacity of 701 mAh g −1 . The major advantage of the LDHs precursor method for the synthesis of NiFe 2 O 4 is that it uses a readily available precursor and affords a spinel with a small particle size and uniform distribution of metal cations, hence, resulting in a good electrochemical performance.