In this study, we report an eco-friendly and facile process for the synthesis of biochar, BC, and a cobalt-biochar nanocomposite, Co-BC, using rice straw biomass. We constructed two superhydrophobic coatings on steel substrates using potentiostatic electrodeposition of nickel-modified biochar, Ni@BC, and nickel modified by cobalt-biochar nanocomposite, Ni@Co-BC, then, these coatings were soaked in an ethanolic stearic acid solution. Fourier transform infrared spectroscopy showed that the stearic acid-grafted Ni@BC coating, Ni@BC@SA, and the stearic acid-grafted Ni@Co-BC composite, Ni@Co-BC@SA, were well grafted on the steel surface. Scanning electron microscopy revealed that the superhydrophobic coatings have nanoscale features. Atomic force microscopy results showed that the Ni@Co-BC@SA coat had higher roughness than Ni@BC@SA, resulting in higher superhydrophobicity. The water contact angles for Ni@BC@SA and Ni@Co-BC@SA coatings were 161° and 165°, respectively, while the values of water sliding angles for both coatings were 3.0° and 1.0°, respectively. Quantitative estimation of the scale inhibition efficiency revealed that the Ni@Co-BC@SA coating exhibited greater efficiency compared to the Ni@BC@SA coating. Additionally, the Ni@Co-BC@SA coating demonstrated improved corrosion resistance, UV resistance, mechanical abrasion resistance, and chemical stability compared to the Ni@BC@SA coating. These results highlight the superior performance of the Ni@Co-BC@SA coating and its potential as a highly effective and durable superhydrophobic coating for steel substrates.