Water pipes are made up of iron. Rusting of iron occurs when iron interacts with air and water. Therefore, to prevent rusting of iron, water pipes are galvanized, i.e. iron pipes are coated with metals such as zinc or chromium to prevent iron from interacting with air.