Sacrificial protection involves galvanising the metal you want to be protected from rusting with a more reactive metal, which will rust first and prevent water and oxygen reaching the layer underneath.
Metals can be arranged in a reactivity series based on their displacement reactions between metals and metal oxides, metals and aqueous solutions of metal salts.
Potassium, sodium, lithium, calcium, magnesium, aluminium, zinc, iron, copper, silver, gold can be put in order of their reactivity from their reactions with water and dilute acids.