How to prevent iron from rusting ?

Some of the most effective ways to prevent iron from rusting are : 1. Barrier protection 2. Sacrificial protection. In sacrificial method, surface of iron is covered with layer of more active metal like zinc. This active metal loses electrons (undergoes oxidation) in preference to iron and hence, prevents the rusting of iron.