Chlorine can form an ionic bond with sodium to form NaCl (which is essentially Na+ and Cl- adjacent to one another in a crystalline manner). When you put NaCl in water, the Na+ is surrounded by the electrons from the oxygen in water and the Cl- is surrounded by the hyrodgens of water.