The main objective of this study was to develop antibacterial materials based on polyacrylonitrile for potential application in protective face masks to combat airborne pathogens. To achieve biocidal properties, 1-chloro-2, 2, 5, 5-tetramethyl-4-imidazolidinone as a kind of N-halamine was introduced into the polyacrylonitrile nanofibers by an electrospinning technique to form nanofibers by an electrospinning technique to form polyacrylonitrile/1-chloro-2, 2, 5, 5-tetramethyl-4-imidazolidinone-5% nanofibers. Scanning electron microscopy and Fourier transformed infrared spectroscopy were employed to characterize the structure of nanofibers. The antimicrobial efficacies of electrospinning nanofibers with 1-chloro-2, 2, 5, 5-tetramethyl-4-imidazolidinone against both Staphylococcus aureus and Escherichia coli O157:H7 were evaluated at different contact times. The antimicrobial efficacies against bioaerosol of S. aureus were also performed. The polyacrylonitrile/1-chloro-2, 2, 5, 5-tetramethyl-4-imidazolidinone-5% nanofibers possess excellent antimicrobial efficacies against bacteria bioaersol, and it has good air permeability.