Molecules are often defined as the smallest part of a chemical compound formed from the bonding of atoms of different elements, but a molecule can also consist of a bond between the same type of atom, such as two hydrogen atoms bonding to form a hydrogen (H2) molecule.