Until the 18th century no distinction was made between potassium and sodium. Sodium was first isolated in 1807 by Sir Humphry Davy, who made it by the electrolysis of very dry molten sodium hydroxide, NaOH. Sodium was collected at the cathode. Shortly after Gay-Lussac isolated sodium by reducing caustic soda with iron metal at high temperatures.