The chemical composition of a substance determines its physical and chemical properties, which in turn affect its behavior in biological systems. For instance, the presence of heavy metals like lead or mercury can make a substance highly toxic. The composition also influences the solubility, stability, and reactivity of the substance, all of which are critical factors in its toxicological profile.