The severe polysulfides shuttling and irregular lithium dendrites impede the widespread adoption of lithium-sulfur (Li-S) batteries. Here, a sulfiphilic/lithiophilic NiCoP nanofiber arrayed on carbon cloth (NiCoP@CC) as the sulfur/lithium host is reported, providing a dual solution for both cathode and anode issues. Both theoretical calculations and experiments confirm that NiCoP@CC enhances the cycling stability of sulfur cathode and lithium anode by facilitating polysulfides conversion and homogenizing lithium deposition. Additionally, the unique structure of NiCoP nanofiber-decorated carbon cloth provides ample space to accommodate active materials and ensures even distribution of sulfur and lithium. Consequently, Li-S half cells containing NiCoP@CC exhibit an outstanding cycling life of 900 cycles at 1 C. Moreover, the Li@NiCoP@CC electrode achieves a stable, long cycling performance for 3000 h at 1 mA cm