The structure of a compound, including its molecular geometry and the presence of specific functional groups, can greatly influence its toxicity. For example, the addition of a functional group such as a halogen can increase the compound's ability to penetrate biological membranes, enhancing its toxicity. Similarly, stereochemistry, or the spatial arrangement of atoms, can lead to differences in how a compound interacts with biological targets.