Oxytetracycline (OTC) in the waste water can be removed by biochar adsorption. How to separate the biochar adsorbed antibiotics from the wastewater was also a problem. The nontoxic magnetic biochar was prepared from Suaeda biochar (800SBC) by mafic bimetal modification, and used for the removal of OTC. The results of XRD and VSM indicated that the main composition of biochar was ferrite. Then through batch adsorption experiments, the adsorption kinetics, isothermal adsorption, thermodynamics, and coexisting ion and adsorbent regeneration experiments were studied. Through the fitting of the adsorption model, it was found that MgFe@800SBC(1:1) and 800SBC belonged to chemisorption. 800SBC was consistent with the Langmuir model, mainly monolayer adsorption, and Mg-Fe@800SBC(1:1) was consistent with the Freundlich model, mainly multilayer adsorption. The adsorption processes of the two materials were spontaneous, endothermic and entropic decreasing processes. The maximum adsorption capacity of the Mg-Fe@800SBC(1:1) for OTC from the Sips L-F model was 82.83 mg/g. Through various characterizations of magnetic biochar, it was found that the adsorption mechanism of the modified biochar included the hydrogen bonds between the oxygen-containing functional group of biochar and the -NH2 group of OTC, pi-pi EDA interaction, electrostatic attraction and complexation. Coexistence anions (CO32- and PO43- ) have a negative effect on the adsorption process.