Personal protective air filtration masks are becoming increasingly desirable, but most commercial air purifiers have poor biocidal capabilities. Here the authors fabricate metal–organic framework-based air filters with both high particulate matter removal efficiencies and photocatalytic bactericidal properties.