When Group 1 and 2 metals (other than beryllium) react with liquid water, they will form that metal hydroxide and hydrogen gas, at different rates, per reactivity. When other reactive metals react with liquid water, they form metal oxides and hydrogen gas. Exception is Aluminium, which forms a hydroxide.
However, this is also complicated with hot water, or steam, forming a combination of oxide and hydroxide when reacted with Magnesium, for example. Also, per my teacher, in marine environments metals which typically form oxides form hydroxides instead, and that metal oxides will react to form metal hydroxides.
Hence, what exactly is the driving mechanism for an oxide or hydroxide formation? I feel that simply metal reactivity is not rigorous enough, and if there is some explanation, perhaps dealing with solubility equilibria on the marine environment and reaction favourbility generally, it would be really appreciated.