The article presents the results of the characterization of the geometric structure of the surface of unalloyed structural steel and alloyed (martensitic) steel subjected to chemical processing. Prior to phosphating, the samples were heat-treated. Both the surfaces and the cross-sections of the samples were investigated. Detailed studies were made using scanning electron microscopy (SEM), XRD, metallographic microscopy, chemical composition analysis and fractal analysis. The characteristics of the surface geometry involved such parameters as circularity, roundness, solidity, Feret’s diameter, watershed diameter, fractal dimensions and corner frequencies, which were calculated by numerical processing of SEM images.