Aluminium can form an amalgam in solution with mercury. Aluminium amalgam may be prepared by either grinding aluminium pellets or wire in mercury, or by allowing aluminium wire to react with a solution of mercury(II) chloride in water. This amalgam is used as a chemical reagent to reduce compounds, such as the reduction of imines to amines. The aluminium is the ultimate electron donor, and the mercury serves to mediate the electron transfer. The reaction and the waste from it contains mercury, so special safety precautions and disposal methods are needed. As an environmentally friendlier alternative, hydrides or other reducing agents can often be used to accomplish the same synthetic result. An alloy of aluminium and gallium was proposed as a method of hydrogen generation, as the gallium renders the aluminium more reactive by preventing it from forming an oxide layer. Mercury has this same effect on aluminium, but also serves additional functions related to electron transfer that make aluminium amalgams useful for some reactions that would not be possible with gallium. Reactivity Aluminium exposed to air is ordinarily protected by a molecule-thin layer of its own oxide. This aluminium oxide layer serves as a protective barrier to the underlying unoxidized aluminium and prevents amalgamation from occurring. No reaction takes place when oxidized aluminium is exposed to mercury. However, if any elemental aluminium is exposed (even by a recent scratch), the mercury may combine with it to form the amalgam. This amalgamation can continue well beyond the vulnerable aluminium was exposed, potentially reacting with a large amount of the raw aluminium before it finally ends. The net result is similar to the mercury electrodes often used in electrochemistry, however instead of providing electrons from an electrical supply, they are provided by the aluminium which becomes oxidized in the process. The reaction that occurs at the surface of the amalgam may actually be a hydrogenation rather than a reduction. The presence of water in the solution is reportedly necessary; the electron rich amalgam will oxidize aluminium and reduce H+ from water, creating aluminium hydroxide (Al(OH)3) and hydrogen gas (H2). The electrons from the aluminium reduce mercuric Hg2+ ion to metallic mercury. The metallic mercury can then form an amalgam with the exposed aluminium metal. The amalgamated aluminium then is oxidized by water, converting the aluminium to aluminium hydroxide and releasing free metallic mercury. The generated mercury then cycles through these last