Network segmentation enhances security by creating barriers between different segments of a network. In a toxicology lab, for instance, one segment might be dedicated to research data, another to patient records, and another to administrative functions. If a cyberattack occurs, the segmented network can contain the breach within one segment, preventing it from spreading to other parts of the network. This minimizes the potential damage and helps in quick recovery.