chlorine is generated from salt by a process called electrolysis. The salt water passes through an electrically charged cell. this process physically separates the "sodium chloride" molecule, which produces chlorine.