A lasting attraction between atoms that may result from the electrostatic force of attraction between atoms with opposite charges, or through the sharing of electrons as in the covalent bonds.