The force that holds together the atoms in a compound; chemical bonding occurs because atoms of an a element become more stable by losing, gaining, and sharing electrons. What happens to the properties of elements when atoms form compounds ? They share electrons and form a "compound bond".