Valence bond theory describes the formation of covalent bonds between atoms through the overlap of atomic orbitals and the sharing of electron pairs. There are two types of orbital overlaps - sigma bonds form from head-on overlap along the internuclear axis, while pi bonds form from side-by-side overlap perpendicular to the axis. The extent of orbital overlap determines the bond strength. Valence bond theory also explains the directional properties of bonds in molecules and the octet rule by which atoms seek to attain the stable electron configuration of the nearest noble gas.