It is shown that by varying the molar ratio n = [polyphosphate]/[Me(II)] in
aqueous electrolytes it is possible to control the contents of Mg, Mn, P,
Al and Ti in the anodic layers that are formed at potentials of sparking an
d microarc discharges on aluminum and titanium. The effects of the nature o
f a treated metal on the parameters of the formation, thickness, and elemen
tal composition of coatings are compared.