The formation of these bonds takes place with the electron shared between the atoms. They share their valence electrons to obtain stable atomic structures. Stability is the main cause of the covalent bonds.