Some atoms become more stable by gaining or losing an entire electron (or several electrons). When they do so, atoms form ions, or charged particles. Electron gain or loss can give an atom a filled outermost electron shell and make it energetically more stable.
hope it helped please tell me if im wrong.