A molecule is a group of atoms bonded together. A compound is a substance formed when two or more different elements are chemically bonded. Since all compounds are made of molecules (or formula units), the statement that all compounds are molecules is generally accepted in introductory contexts.