An ionic bond is formed by the attraction of oppositely charged atoms or groups of atoms called ions.