A chemical bond is a lasting attraction between atoms that allows the formation of chemical substances. There are two main types of chemical bonds: ionic bonds, which involve the transfer of electrons between atoms, and covalent bonds, where atoms share electrons. Covalent bonds can be either polar or nonpolar depending on whether the electrons are shared equally or unequally between the atoms.