You can alloy metals to change their corrosion behaviour. Stainless steel is a very good example of this. Chromium is added to the steel to enhance its corrosion resistant properties. This works because the chromium in the metal forms a passivating layer, similar to that produced by aluminium.
You can also add small amounts of another metal to an alloy, which can shift its position in the galvanic series making it more cathodic than it was previously.