Toxins can affect apoptosis by either directly interfering with the apoptotic machinery or by causing cellular damage that triggers apoptotic pathways. Some toxins, like cisplatin and arsenic, induce apoptosis through DNA damage and oxidative stress. Others, like certain pesticides or heavy metals, may inhibit apoptosis by disrupting signal transduction pathways or interfering with caspase activation.