Perovskite oxides with tailored elements and structures endow promising electrocatalytic properties for hydrogen evolution reaction (HER) due to considerable activity and satisfactory long-term operating stability. However, the synthesis of 1D perovskite nanostructures with anion dopants remains a challenge, as well as insights into the performance origin from experimental and theoretical views. Herein, combined with electrospinning and phosphatizing strategies, P-doped Pr 0.5 La 0.5 BaCo 2 O 5+δ perovskite nanofibers (P-PLBC-F) are reported for highly active HER catalysts. The P-PLBC-F catalyst outperforms the classic perovskites and can be comparable to the commercial Pt/C (wt Pt = 20%) benchmark, exhibiting a Tafel slope of −32.9 mV dec −1 and overpotential of −307 mV at 500 mA cm −2 disk in alkaline media. The highly catalytic activity benefits from the desired 1D nanostructure, steered electronic structures (charge transfer energy Δ Co-P = 0.79 eV) and Gibbs free energy for the H * desorption (1.02 eV) induced by the P 3− doping, as supported by density functional theory calculations. The findings described here unveil the phosphatizing mechanism of the perovskites for catalyzing the hydrogen production, and broaden horizons in terms of rational designs of novel perovskite-based catalysts for sustainable energy.