A compound contains atoms of different elements, chemically joined together. Compounds form in chemical reactions, and you need other chemical reactions to separate a compound into its elements.