Carbazole-based COFs were synthesized and applied as the sulfur-host in cathode materials for lithium-sulfur batteries (LSBs), which effectively mitigate the shuttle effect of lithium polysulfides. A high initial capacity of 1232 mAh g-1 at 0.1C is achieved, while also showing excellent capacity retention and stability in cyclic experiments. This work highlights the potential application of carbazole-based COFs for LSBs.