Atoms in a molecule are held together through shared electrons. In a covalent bond, the stability of the bond comes from the shared electrons between two atoms. By sharing electrons, the atoms can complete their outermost electron shell and become more stable. This shared electron arrangement allows the atoms to form a strong bond and remain together in a molecule.