The process of depositing a thin layer of one metal over another metal by the process of electrolysis is called electroplating.
It is done to protect the metal from corrosion. For example, metals like iron are electroplated with tin, nickel or chromium to protect from rusting.