In some molecules, like the oxygen molecule O2, all the atoms are the same type. Therefore, this type of molecule is an ELEMENT. But water H2O is a COMPOUND.