Corrosion of steel is an issue that cannot be ignored in contemporary society. Due to large-scale corrosion, it is urgent to develop a surface treatment process that enhances the corrosion resistance of steel, allowing for application in various scenarios as needed. This study aims to investigate a novel surface treatment process to extend the service life of corroded Q235 steel, reduce its sensitivity to corrosion, and enable its use in multiple environments. This study employs the sol-gel method, using manganese nitrate solutions of varying concentrations to treat the surface of Q235 steel after different electrolysis times. The optimal conditions for precursor preparation were found to be a Mn2+ concentration of 0.1 mol/L and an electrolysis time of 2 h. Electrochemical tests using NaCl solutions of different concentrations revealed a significant reduction in the corrosion current for the composite coating based on Q235 steel treated with this method in NaCl solutions with wt.% = 1, 2, 3, 4, 5. Furthermore, the resistance to corrosion was strongest in the NaCl solution with a concentration of 1 wt.% where the corrosion current decreased from 24.8 µA/cm2 to 6.79 µA/cm2. Additionally, the coating was found to be diffusion-controlled in the early stages of the corrosion process and charge transfer-controlled in the later stages. The MnFe2O4 spinel coating demonstrated the greatest enhancement in corrosion resistance in the wt.% = 1 NaCl solution.