Embodiments herein relate to the production of biocompatible magnetic nanoparticles with a high SAR-value which produce a large amount of heat when exposed to an alternating magnetic field. The produced heat can be used among others for therapeutic purposes, in particular for combating cancer.