structural:summarization, stylistic:style_transfer
Chemical reactivity

Barium is chemically similar to magnesium, calcium, and strontium, but more reactive. Its compounds are almost invariably found in the +2 oxidation state. As expected for a highly electropositive metal, barium’s reaction with chalcogens is highly exothermic (release energy). Barium reacts with atmospheric oxygen in air at room temperature. For this reason, metallic barium is often stored under oil or in an inert atmosphere. Reactions with other nonmetals, such as carbon, nitrogen, phosphorus, silicon, and hydrogen, proceed upon heating. Reactions with water and alcohols are also exothermic and release hydrogen gas:

Barium reacts with ammonia to form the electride (e), which near room temperature gives the amide Ba(NH).

The metal is readily attacked by acids. Sulfuric acid is a notable exception because passivation stops the reaction by forming the insoluble barium sulfate on the surface. Barium combines with several other metals, including aluminium, zinc, lead, and tin, forming intermetallic phases and alloys.