The present invention relates to cubic or octahedral ferrite nanoparticles and a method for preparing the same. In particular, the present invention is directed to a ferrite nanocube which is superparamagnetic or ferromagnetic, and a method for preparing a ferrite nanocube, comprising heating a mixture of a metal precursor, a surfactant and a solvent.