N95 respirators work by filtering out airborne particles through a combination of mechanical and electrostatic capture. The filter material is designed to trap large dust particles through mechanical filtration, while smaller particles are captured by electrostatic attraction. This dual mechanism ensures high efficiency in filtering out harmful particles, including some types of viruses and bacteria.