Corrosion can occur in two ways in ductile iron pipes : graphitization, the leaching away of iron content through corrosion leading to a generally weakened pipe structure, and corrosion pitting, which is a more localized effect also causing weakening of the pipe structure.