Surgical masks are typically made of a multi-layered structure, often including a layer of filter material. This design helps to catch and filter out pathogens, including viruses and bacteria, thereby reducing the risk of infection transmission. They also serve as a barrier to large droplets, splashes, or sprays that may contain germs.