During anodic deposition, the substrate to be coated acts as the anode (positively charged electrode) in an electrolytic cell. When an electric current is passed through the cell, metal ions in the electrolyte solution migrate towards the anode and get deposited onto the substrate surface, forming a coating. The thickness and morphology of the coating can be controlled by adjusting the current density, electrolyte composition, and deposition time.