There are three main metals used as galvanic anodes: magnesium, aluminum and zinc. They are all available as blocks, rods, plates or extruded ribbon. Each material has advantages and disadvantages.
Magnesium has the most negative electropotential of the three (see galvanic series) and is more suitable for areas where the electrolyte (soil or water) resistivity is higher. This is usually on-shore pipelines and other buried structures, although it is also used on boats in fresh water and in water heaters. In some cases, the negative potential of magnesium can be a disadvantage: if the potential of the protected metal becomes too negative, reduction of water or solvated protons may evolve hydrogen atoms on the cathode surface, for instance according to
leading to hydrogen embrittlement or to disbonding of the coating. Where this is a concern, zinc anodes may be used. An aluminum-zinc-tin alloy called KA90 is commonly used in marine and water heater applications.
Zinc and aluminium are generally used in salt water, where the resistivity is generally lower and magnesium dissolves relatively quickly by reaction with water under hydrogen evolution (self-corrosion). Typical uses are for the hulls of ships and boats, offshore pipelines and production platforms, in salt-water-cooled marine engines, on small boat propellers and rudders, and for the internal surface of storage tanks. 
Zinc is considered a reliable material, but is not suitable for use at higher temperatures, as it tends to passivate (the oxide layer formed shields from further oxidation); if this happens, current may cease to flow and the anode stops working. Zinc has a relatively low driving voltage, which means in higher-resistivity soils or water it may not be able to provide sufficient current. However, in some circumstances &mdash; where there is a risk of hydrogen embrittlement, for example &mdash; this lower voltage is advantageous, as overprotection is avoided.
Aluminium anodes have several advantages, such as a lighter weight, and much higher capacity than zinc. However, their electrochemical behavior is not considered as reliable as zinc, and greater care must be taken in how they are used. Aluminium anodes will passivate where chloride concentration is below 1,446 parts per million.
One disadvantage of aluminium is that if it strikes a rusty surface, a large thermite spark may be generated, so its use is restricted in tanks where there may be explosive atmospheres and there is a risk of the anode falling.
Since the operation of a galvanic anode relies on the difference in electropotential between the anode and the cathode, practically any metal can be used to protect some other, providing there is a sufficient difference in potential. For example, iron anodes can be used to protect copper.