This work focuses on the atmosphere protected, ecological process by the combination of Cobalt doped Zinc oxide nanocomposites utilizing the extraction of Ocimum sanctum. The prepared nanocomposites are examined by unusual methods like Fourier transform infrared spectroscopy (FT-IR), X-ray Diffraction (XRD), Field emission scanning electron microscopy (FE-SEM), Energy Dispersive X-Ray Analysis (EDAX). A efficient study has been made on the result of Co doped ZnO nanocomposite for the anticorrosion behaviour of mild steel. The Co-ZnO nanocomposites of average diameter in the range 36 nm were coated on mild steel in nickel bath solution. The anticorrosion properties on the coated mild steel was carefully tested in 3.5% NaCl solution by performing potentiodynamic polarization measurement and electrochemical impedance spectroscopy. Surface morphology of the coated mild steel immersed in corrosive solution was judged by using SEM with EDAX. The Co-ZnO nanocomposites coating has shown a perfect protection against corrosion and the shielding capability is in the range of 95%. The incorporation of Co-ZnO nanocomposites has upgraded the process of mild steel in all corrosion media are subjected to the investigation.