Engineers use the same phenomenon to prevent offshore oil production platforms from rusting away. Aluminum anodes are bolted to the steel legs of the platform and they corrode instead of the steel platform.