Classical methods of cleaning oil spills do not give satisfactory results in removing oil from water, but the functional nanomaterials show the potential to be able to become cost effective and environmentally friendly solutions. The invention is based on the problem of how to synthesize nanoparticles so that they will have such physicochemical properties that will be useful for the adsorption of oil stains / spills in water. The nanoparticles are supposed to have an iron oxide spinel crystal structure with a functional organic coating based on alkoxide precursors and should be small enough, single domain to exhibit superparamagnetic properties, meaning they are magnetically responsive in the presence of an external field but not permanently magnetized.