A chemical bond is the force that holds atoms together. The type of bonding shapes a substance's properties. ## Ionic bonds After electrons are transferred, the resulting cations and anions attract each other electrically. Table salt (sodium chloride) is the classic example, forming regular crystals. ## Covalent bonds Atoms share electrons. This builds molecules such as water and carbon dioxide. In diamond, carbon atoms are linked covalently in a three-dimensional network, making it extremely hard. ## Metallic bonds In metals, valence electrons are not tied to individual atoms but move freely through the whole structure. This sea of free electrons explains metallic conductivity and lustre; the picture is of cations immersed in an electron sea inside a regular crystal.