This document discusses the formation of ions from elements. It begins by defining valence electrons as the electrons in the outermost energy level of an atom. The number of valence electrons determines an element's chemical properties and usually matches the element's group number on the periodic table. Atoms form ions by gaining or losing valence electrons to achieve stable noble gas configurations. Cations are positively charged ions that form when metals lose electrons. Anions are negatively charged ions that form when nonmetals gain electrons. Common cations include Na+ and Mg2+; common anions include Cl- and O2-.