Sodium chloride is formed when sodium atoms interact with chlorine atoms. When this occurs, sodium will donate an electron (which is a negatively-charged particle) to chlorine. This makes sodium slightly positive and chlorine slightly negative. ... So then, sodium ions will attract chloride ions and form an ionic bond.