Magnetic and conducting Fe_3O_4-polypyrrole nanoparticles with core-shell structure have been prepared in the presence of Fe_3O_4 magnetic fluid in aqueous solution containing dodecylbenzene sulfonic acid sodium salt (NaBS) as a surfactant and dopant.