The article discusses the influence of various temperature-time modes of complete annealing on the wettability of the surface of special stainless steels of the CrNi65MWU and 20Cr23Ni18 grades. The dependences of the edge angle of wetting of the surface depending on the temperature and holding time of the samples during annealing are shown, and the influence of preliminary mechanical treatment of the surface on its adhesive abilities is estimated. Optimal heat treatment regimes were determined to increase the hydrophobicity of the surface of both steels, in order to improve their corrosion resistance. Also, calculations of the work of adhesion, cohesion are carried out and the relationship between these indicators is shown.