On an atomic level when a reaction takes place between two elements such as sodium and chlorine result in
two oppositely charged ions is they combine to form an ionic compound, sodium loses its one electron to
chlorine so chlorine gains one electron.
It forms a chloride ion and forms the ionic compound sodium chloride.