The formation of a covalent bond between two atoms is a result of pairing of electrons present in the valence shell having opposite spins.
According to orbital overlap concept, the formation of a covalent bond between two atoms results by pairing of electrons present in the valence shell having opposite spins.