A compound is a substance that is formed when two or more different chemical elements bond together in a fixed ratio, like water (H₂O) from hydrogen and oxygen or salt (NaCl) from sodium and chlorine.