Chlorine is an atom that has 17 protons and usually either 18 or 20 neutrons in its nucleus and 17 electrons circling around its nucleus. Chlorine atoms, like other light atoms such as oxygen, form inside stars and scatter into space when the star becomes a supernova.
On earth, chlorine forms molecules of two chlorine atoms. It is a pale green gas. Chlorine atoms have two electrons in the inner ring, then eight electrons in the second ring, then seven electrons in their outer ring. This means that they are not stable, but they only need to add one electron to the outer ring to fill it up, and then the chlorine atom will be stable.
Video shows what happens when you mix chlorine and sodium.
Because of this missing electron, chlorine atoms join up easily with any atom that has one extra electron. Sodium is the most common example of this, and both in space and on earth sodium and chlorine atoms often join together (with the help of water) – that makes molecules of salt.
Chlorine also mixes easily with water, forming an acid molecule made of hydrogen, oxygen, and chlorine atoms. This is the main ingredient of bleach, and we use it to kill bacteria in water, to make it safe to swim in and to drink. Chlorinated water kills bacteria because it breaks down into chlorine and oxygen. Both the chlorine and the oxygen need more electrons and join easily with other atoms. When they hit a bacterium, they join up with some of the atoms of the lipid membrane of the bacterium cell. Then the lipid membrane leaks. It can’t keep the cytoplasm inside the cell anymore, and the cell dies.