When sodium reacts with water, it undergoes a highly exothermic reaction, producing sodium hydroxide (NaOH) and hydrogen gas (H2).