In recent years, electrospun nanofibers have attracted extensive attention due to their large specific surface area, high porosity, and controllable shape. Among the many applications of electrospinning, electrospun nanofibers used in fields such as tissue engineering, food packaging, and air purification often require some antibacterial properties. This paper expounds the development potential of electrospinning in the antibacterial field from four aspects: fiber morphology, antibacterial materials, antibacterial mechanism, and application fields. The effects of fiber morphology and antibacterial materials on the antibacterial activity and characteristics are first presented, then followed by a discussion of the antibacterial mechanisms and influencing factors of these materials. Typical application examples of antibacterial nanofibers are presented, which show the good prospects of electrospinning in the antibacterial field.