using a sacrificial material through galvanising or attaching blocks of zinc or magnesium, since these metals are more reactive than iron, they have a greater tendency to lose electrons and be oxidised, thus they will corrode preferentially instead of iron