Ionic bonding is the attraction between positively- and negatively-charged ions. These oppositely charged ions attract each other to form ionic networks (or lattices). Electrostatics explains why this happens: opposite charges attract and like charges repel.