Fabricating highly efficient and long-life redox bifunctional electrocatalysts is vital for oxygen-related renewable energy devices. To boost the bifunctional catalytic activity of Fe-N-C single-atom catalysts, it is imperative to fine-tune the coordination microenvironment of the Fe sites to optimize the adsorption/desorption energies of intermediates during oxygen reduction/evolution reactions (ORR/OER) and simultaneously avoid the aggregation of atomically dispersed metal sites. Herein, a strategy is developed for fabricating a free-standing electrocatalyst with atomically dispersed Fe sites (≈0.89wt.%) supported on N, F, and S ternary-doped hollow carbon nanofibers (FeN4 -NFS-CNF). Both experimental and theoretical findings suggest that the incorporation of ternary heteroatoms modifies the charge distribution of Fe active centers and enhances defect density, thereby optimizing the bifunctional catalytic activities. The efficient regulation isolated Fe centers come from the dual confinement of zeolitic imidazole framework-8 (ZIF-8) and polymerized ionic liquid (PIL), while the precise formation of distinct hierarchical three-dimensional porous structure maximizes the exposure of low-doping Fe active sites and enriched heteroatoms. FeN4 -NFS-CNF achieves remarkable electrocatalytic activity with a high ORR half-wave potential (0.90V) and a low OER overpotential (270mV) in alkaline electrolyte, revealing the benefit of optimizing the microenvironment of low-doping iron single atoms in directing bifunctional catalytic activity.