A prepared multifunctional separator for Li–S batteries shows no corrosions and lithium dendrites in after-cycling anodes, greatly suppressed ‘shuttle effect’, high utilization of active sulfur, and reduced charge transfer resistance, and high-performance Li–S batteries are achieved.