Lithium‐sulfur battery is one of the most promising electrochemical energy storage systems because of its high theoretical specific capacity and energy density. When carbon materials are used for immobilizing sulfur, the technical challenge is designing their framework to relieve the shuttle effect of polysulfides intermediates and the volume change of sulfur, and to improve the conductivity of sulfur. Herein, polyaniline‐based carbon (PANI‐C) coated corn starch‐based activated carbon spheres (ACS@PANI‐C) was prepared and used as hosts of sulfur, which can effectively combine the advantages of physical entrapment and chemical binding interactions of sulfur species. The results of electrochemical performance test indicate that S/ACS@PANI‐C composites exhibit much better electrochemical performance than S/ACS composites. Its reversible capacities at 320, 480, 800 and 1600 mA g−1 are 687, 582, 504 and 393 mAh g−1, respectively. The improved electrochemical performance can be attributed to the PANI‐C which can also act as a flexible cushion to accommodate volume changes of sulfur cathode as well as a barrier to trap soluble polysulfide intermediates during the charge–discharge process. © 2018 Wiley Periodicals, Inc. J. Appl. Polym. Sci. 2018, 135, 46544.