What happens when atoms bond?

A chemical bond is formed when atoms are held together by attractive forces. This attraction occurs when electrons are shared between atoms, or when electrons are exchanged between the atoms that are involved in the bond. The sharing or exchange of electrons takes place so that the outer energy levels of the atoms involved are filled and the atoms are more stable. If an electron is shared, it means that it will spend its time moving in the electron orbitals around both atoms. If an electron is exchanged it means that it is transferred from one atom to another, in other words one atom gains an electron while the other loses an electron.