A chemical bond is a lasting attraction between atoms that enables the formation of chemical compounds and may result from the electrostatic force of attraction between atoms with opposite charges, or through the sharing of electrons as in the covalent bonds.