In this study, polyacrylonitrile (PAN) derived unique and novel heterojunction nanofibers garnished with SO42- doped Ag3PO4 nanoparticles (SO42--Ag3PO4/PAN) were successfully prepared by cost effective two-step approach including electrospinning and ion exchange process. The antibacterial property of as-prepared SO42--Ag3PO4/PAN heterojunction nanofibers was examined via dual disk diffusion and bacteria colony count tests against bacterial strains. The achieved results demonstrated that the flexible heterojunction SO42--Ag3PO4/PAN nanofiber provided better performance as compared to its solitary counterparts. This work can lavishly support for designation of hetero-atom doped nanofibers composite with marvelous antibacterial activity.