TiO2-coated nanofibers deposited on a filter surface by the electrospinning process can capture submicrometer droplets and destroy the virus upon UV irradiation or under natural sunlight.