In the picture below copper is the sacrificial anode, exchanging copper ions for silver which cements out of solution.

Credits of the image belong to Silver Refining