Flexi Says: A covalent bond is the force of attraction that holds together two nonmetallic atoms that share a pair of valence electrons. The shared electrons are attracted to the nuclei of both atoms. They do sharing to satisfy the octet rule. The number of bonds depends on number of shared electrons. For example In water molecule the oxygen atom follows the octet rule with two pairs of bonding electrons and two lone pairs. Each hydrogen atom follows the octet rule with one bonding pair of electrons.