The paper presents the results of studies on the possibility of using magnetic nanoparticles modified with selected hydrophobic surfactants for model post-production water purification. Colloidal solutions of iron hydroxide (III) and iron oxide (II and III) were obtained and their particles were subjected to surface modification using surfactants. Thus obtained magnetic fluids were used as active agents in the process of removing selected organic dyes from their aqueous solutions. The effectiveness of the modified compounds was analysed using spectrophotometric methods. It has been shown that the effectiveness of the process depends on the type of surfactant used to modify selected magnetic nanoparticles.