When metals react with water, they undergo a chemical reaction that produces two products: a metal hydroxide and hydrogen gas. For example, sodium reacts with water to form sodium hydroxide and hydrogen gas. This is a characteristic reaction of reactive metals like alkali metals and some alkaline earth metals.