The role of surface roughness in coating adhesion mechanism is studying for detonation spraying. Roughness was produced by conventional grit blasting, D-gun blasting and was formed as a result of spraying of high-adhesive thin layer of detonation coating. Cermet and alloy powders were sprayed by detonation gun Ob. The coating bonding strength measurements show the WC+25Co adhesion to be above 200 MPa independently of a substrate surface preparation. Contrary, NiCrSiB coatings are very sensitive to surface conditions their adhesion varies from 180 MPa to zero. As-sprayed alloy particles fail in adherence because of insufficient energy to fuse substrate material at a flat surface. Only developed (wide scale) roughness may be fused partially by these particles for their bonding to the substrate. Otherwise, high heated cermet particles do not need special surface preparation (except cleaning) for fusion of substrate material to provide high bonding with it. The wide scale and ball shape roughness, which is similar to the self-reproduced coating roughness, provides the best conditions for the coating bonding and it is recommended as the purpose of surface treatment before thermal spray coating.