The prevention of a hazardous material from being released into the environment or beyond a defined boundary. Codes of practice or legislation are often used to define the boundary within which such materials must be contained, such as vessels, chambers, cabinets, glove boxes, nuclear cells, and other similar facilities. Examples include the containment of radioactive process materials and biological substances such as pathogens.