Despite the fact that we live in the era of new technologies and advanced to reveal the basic mechanism of the disease and design new drugs, but at the same time the treatment of infectious diseases is one of the greatest challenges in worldwide. several antibiotics have been used to growth inhibition and destroying infectious diseases but the development of resistance and the emergence of side effects, the use of these agents have severely limited. however, biological substances at the nanoscale has physico-chemical properties appropriate. In this paper, It is trying to magnetic nanoparticles of magnetite (Fe 3 O 4 ) with a Basil Seed Polymer (basil seed mucilage as a natural coating, non-toxic and biodegradable) are sustained. the natural polymer with a certain amount of water in the presence of a acidic or alkaline catalyst is hydrolysis and with separation of Basil Seed Mucilage, gets necessary ability to linkage. Then, in all the synthesized samples, the structure and magnetic properties of the samples, has been studied by using various tools such as X-ray diffraction (XRD), Furier Transform Infrared (FTIR), Field Emission Scanning Electron Microscope (FESEM), Vibrating Sample Magnetometer (VSM), Transmission Electron Microscopy (TEM), Spectrophotometry (UV-Vis), Anti-bacterial, and Specific Surface (BET). the results showed that the higher adsorption capacity occurs when cephalexin is cationic at pH 2.5 .By comparing the size of the uncoated nanoparticles (12 nm) and the size of the coated magnetite nanoparticles (6 nm), it was found that with the mucilage coating being put on the magnetite nanoparticles, the size of the nanoparticle cores has also decreased. Disk Diffusion Anti-Bacterial Test showed that the loading of CPX on the Fe 3 O 4 @BSM nanocarrier, not only does not have any negative effects on the structure and performance of the drug, but also increases the antibacterial properties of CPX .