A heterogeneous photocatalytic system is attracting much interest for water and air purification because of its reusability and economical advantage. Electrospun nanofibers are also receiving immense attention for efficient photocatalysts due to their ultra-high specific surface areas and aspect ratios. In this study, ZnO nanofibers with average diameters of 71, 151 and 168 nm are successfully synthesized by facile electrospinning and a subsequent calcination process at 500 ℃ for 3 h. Their crystal structures, morphology features and optical properties are systematically characterized by X-ray diffraction, scanning electron microscopy, UV-Vis and photoluminescence spectroscopies. The photocatalytic activities of the ZnO nanofibers are evaluated by the photodegradation of a rhodamine B aqueous solution. The results reveal that the diameter of the nanofiber, controlled by changing the polymer content in the precursor solution, plays an important role in the photocatalytic activities of the synthesized ZnO nanofibers.