This occurs when atoms share electrons to form a stable molecule. Covalent bonds can be either polar or nonpolar.