Sulfur defective V5S8/CNFs is synthesized by an electrospinning method, followed by sulfuration treatment. The obtained composite exhibits attractive capacities and ultra-stable cycling performances when using as anode materials for sodium-ion and potassium-ion batteries.