In covalent bonding, both atoms are trying to attract electrons--the same electrons. Thus, the electrons are shared tightly between the atoms. The force of attraction that each atom exerts on the shared electrons is what holds the two atoms together.