Lithium–sulfur batteries are a promising energy storage devices beyond conventional lithium ion batteries. However, the “shuttle effect” of soluble polysulfides is a major barrier between electrodes, resulting in rapid capacity fading. To address above issue, pyrrole has been investigated as an electrolyte additive to trap polysulfides. When pyrrole is added into electrolyte, a surface protective layer of polypyrrole can be formed on the sulfur cathode, which not only acts as a conductive agent to provide an effective electron conduction path but also acts as an absorbing agent and barrier layer suppressing the diffusion of polysulfide intermediates. The results demonstrate that an appropriate amount of pyrrole added into the electrolyte leads to excellent cycling stability and rate capability. Apparently, pyrrole is an effective additive for the entrapment of polysulfides of lithium-sulfur batteries.