The pH of soil can significantly influence the bioavailability of toxins. In acidic soils, heavy metals like cadmium, lead, and mercury become more soluble and mobile, increasing their uptake by plants and organisms. Conversely, in alkaline conditions, these metals may precipitate, reducing their availability but potentially leading to accumulation over time.