A preparation method for a magnetic composite for treating and diagnosing cancer. The method may include a step of pyrolyzing a precursor of a magnetic nanoparticle in the presence of a conjugated polymer. The preparation method for a magnetic composite can produce a magnetic composite economically and efficiently because a magnetic composite comprising a magnetic nanoparticle coated with a conjugated polymer can be prepared by a single process.