In a stable molecule, the force that holds two or more atoms together is known as :
chemical bond
The attraction between atoms that enables the formation of chemical compounds is called chemical bonding.This could be either due to the electrostatic force of attraction between atoms carrying opposite charges, or through the sharing of electrons.