A simple and rapid soft‐templating coupled with one‐pot solvent thermal method is developed to synthesize S‐doped magnetic mesoporous carbon (S‐doped MMC). In this method, phenolic resin is used as a carbon precursor and Pluronic copolymer P123 is used as a template and 2,5‐dimercapto‐1,3,4‐thiadiazole is used as sulfur source. Prepared S‐doped MMC processes a high specific surface area, the Fe3O4 particles are well embedded in the mesoporous carbon walls that exhibit a strong magnetic response, and the hydrated iron nitrate loading amount of 0.808 g is the best. Batch adsorption experiments are carried out at different pH, initial concentration, temperature, and contact time on the adsorption of methyl orange (MO) by S‐doped MMC. The kinetic data of the adsorption process are better fitted with pseudo‐second‐order model than the pseudo‐first‐order model. Langmuir model is more suitable for the equilibrium data than Freundlich model. The thermodynamic parameters including ΔG0, ΔH0, and ΔS0 indicate that the adsorption is a feasible, spontaneous, and endothermic process. Finally, it is found that the coexistence of PO43−, NO3−, SO42−, Cl−, and CO32− does not influence the adsorption process. These results illustrate S‐doped MMC can be an efficient adsorbent for the removal of MO from wastewater.