Masks function by trapping respiratory droplets that may contain viruses or bacteria. When worn properly, they reduce the emission of these droplets from an infected person, thereby lowering the risk of transmission. Masks also provide some level of protection to the wearer by filtering out a portion of incoming airborne particles.