The document discusses ionic bonding and the formation of ions. When lithium and nitrogen react, each lithium atom loses one electron to form a Li+ ion, and each nitrogen atom gains three electrons to form an N3- ion. Rubidium, a Group I element, reacts with bromine, a Group VII element, to form the ionic compound rubidium bromide (RbBr) where each rubidium atom loses one electron to form Rb+ ions. Ionic compounds form when atoms transfer electrons such that the ions have full outer shells and opposite charges, allowing them to be held together by electrostatic attraction.