The sodium loses an electron, and the chlorine gains that electron. This reaction is highly favorable because of the electrostatic attraction between the particles. In the process, a great amount of light and heat is released. The resulting salt is mostly unreactive — it is stable.
I just googled this