Salmonella enterica serotype Typhimurium (S. Typhimurium) causes acute gut inflammation by using its virulence factors to invade the intestinal epithelium and survive in mucosal macrophages. The inflammatory response enhances the transmission success of S. Typhimurium by promoting its outgrowth in the gut lumen through unknown mechanisms. Here we show that reactive oxygen species generated during inflammation reacted with endogenous, luminal sulphur compounds (thiosulfate) to form a new respiratory electron acceptor, tetrathionate. The genes conferring the ability to utilize tetrathionate as an electron acceptor produced a growth advantage for S. Typhimurium over the competing microbiota in the lumen of the inflamed gut. We conclude that S. Typhimurium virulence factors induce host-driven production of a new electron acceptor that allows the pathogen to use respiration to compete with fermenting gut microbes. Thus, the ability to trigger intestinal inflammation is crucial for the biology of this diarrhoeal pathogen.