The practical application of lithium-sulfur batteries (LSBs) is hindered by their poor cycle life, which stems mainly from the "redox shuttle reactions" of dissolved polysulfides. To develop a high-performance cathode for LSBs, encapsulation of polysulfides with a blocking layer is potentially straightforward. Herein, a novel strategy is reported encapsulate sulfur and the electrolyte together in porous carbon spheres by using a solid electrolyte interface (SEI) that can selectively sieve Li ions while efficiently avoiding polysulfide accumulation and suppressing undesired polysulfide migration. This strategy is simple, straightforward, and effective. The carbon/sulfur cathode only needs to be cycled a few times within a voltage window of 0.3-1.0 V to form such a smart SEI, allowing the resulting cathode to exhibit superior stability extending 600 cycles. This strategy can be combined with other existing advanced sulfur cathode designs to improve the overall performance of LSBs.