In this work, three nanometal complexes named cetyltrimethyammonium dibromodichloro zincate (CT-Zn), cetyltrimethyammonium dibromodichloro cuprate (CT-Cu), and cetyltrimethyammonium dibromodichloro manganesate (CT-Mn) were prepared, characterized, and evaluated as corrosion inhibitors for carbon steel in water-based mud (WBM). The chemical structure of the prepared complexes was confirmed by the use of Fourier transform infrared spectroscopy, Raman spectroscopy, elemental analysis, atomic absorption spectroscopy, dynamic light scattering, and thermogravimetric analysis techniques. The surface tension of the complexes was measured. The critical micelle concentrations and some of the surface properties were also determined. The compounds were evaluated as corrosion inhibitors for carbon steel in the prepared WBM using potentiodynamic polarization and weight loss methods during the static and dynamic conditions of the drilling operations. The results indicated that the prepared metal complexes showed high anticorrosion action as the inhibition efficiency increased gradually with the increase in the concentrations of the prepared complexes until it reached the maximum value (93.1%) at 300 ppm for CT-Cu. The order of inhibition efficiency of these inhibitors was as follows: CT-Cu > CT-Zn > CT-Mn. The polarization curves showed that these complexes acted as mixed-type inhibitors. According to the results, the adsorption of these compounds obeyed Langmuir adsorption isotherm. Surface analysis of the carbon steel samples was investigated using scanning electron microscopy, energy dispersive X-ray, and X-ray diffraction techniques. Rheological properties, gel strength, thixotropy, and filtration properties were also measured according to American Petroleum Institute specifications.