A compound is a substance composed of two or more different atoms chemically bonded to one another, for example, water (H₂O) consists of 2 atoms of hydrogen (H) and 1 atom of oxygen (O), so it is the compound. Water is created by chemical reaction:
2H₂ + O₂ → 2H₂O