When two atoms share one or more pairs of electrons, a covalent connection is created. These electrons are being drawn to the two atomic nuclei at the same time.