Urinary ammonium excretion by the kidney is essential for renal excretion of sufficient amounts of protons and to maintain stable blood pH. Ammonium secretion by the collecting duct epithelia accounts for the majority of urinary ammonium; it is driven by an interstitium-to-lumen NH3 gradient due to the accumulation of ammonium in the medullary and papillary interstitium. Here, we demonstrate that sulfatides, highly charged anionic glycosphingolipids, are important for maintaining high papillary ammonium concentration and increased urinary acid elimination during metabolic acidosis. We disrupted sulfatide synthesis by a genetic approach along the entire renal tubule. Renal sulfatide-deficient mice had lower urinary pH accompanied by lower ammonium excretion. Upon acid diet, they showed impaired ammonuria, decreased ammonium accumulation in the papilla, and chronic hyperchloremic metabolic acidosis. Expression levels of ammoniagenic enzymes and Na(+)-K(+)/NH4(+)-2Cl(-) cotransporter 2 were higher, and transepithelial NH3 transport, examined by in vitro microperfusion of cortical and outer medullary collecting ducts, was unaffected in mutant mice. We therefore suggest that sulfatides act as counterions for interstitial ammonium facilitating its retention in the papilla. This study points to a seminal role of sulfatides in renal ammonium handling, urinary acidification, and acid-base homeostasis.