A molecule is the smallest part of any chemical compound composed of two or more atoms and which has the qualities of that substance and can exist alone in a free state. As an example, a molecule of water (H2O) consists of two atoms of hydrogen and one of oxygen.