NaBr is produced by treating sodium hydroxide with hydrogen bromide. Sodium bromide can be used as a source of the chemical element bromine. This can be accomplished by treating an aqueous solution of NaBr with chlorine gas: 2 NaBr + Cl2 Br2 + 2 NaCl.