A compound is a substance that contains atoms of two or more different elements. Most of the atoms in the body are joined into compounds. Water (H2O) and sodium chloride (NaCl), common table salt, are compounds. However, a mole- cule of oxygen (O2) is not a compound because it consists of atoms of only one element