A composition for medical usage and method of preparing the same are provided. The composition comprises: at least one magnetic nanoparticle including a nanodiamond particle and at least one magnetic element, wherein the at least one magnetic element is embedded into the at least one nanodiamond particle by using an ion implantation system. The nanodimond particle can be synthesized with different components which can help medical effects of the composition.