A new titanium nitride sulfur composite reduces the notorious shuttle effect and improves the overall performance of lithium-sulfur batteries.