Ionic bonds form between a metal cation and nonmetal anion when the metal loses electrons to the nonmetal to achieve a stable electron configuration. Covalent bonds involve the sharing of electron pairs between two nonmetal atoms and result in weaker bonds than ionic. Metallic bonds are formed by the attraction between free-floating valence electrons in metals and the fixed positively charged metal ions.