The alkaline earth metals all react with the halogens to form ionic halides, such as calcium chloride (Template:Chem), as well as reacting with oxygen to form oxides such as strontium oxide (Template:Chem). Calcium, strontium, and barium react with water to produce hydrogen gas and their respective hydroxides, and also undergo transmetalation reactions to exchange ligands.