Alkali metals react with cold water and alkaline earth metals with boiling water to displace
oxygen
hydrogen
hydroxide ions
all of these
2Na+2H2O→2NaOH+H2
Mg+2H2O→MgOH2+H2