The function of SLC26A6 (solute carrier family 26 member 6, ENSG00000225697) is as follows. Apical membrane anion-exchanger with wide epithelial distribution that plays a role as a component of the pH buffering system for maintaining acid-base homeostasis. Acts as a versatile DIDS- sensitive inorganic and organic anion transporter that mediates the uptake of monovalent anions like chloride, bicarbonate, formate and hydroxyl ion and divalent anions like sulfate and oxalate. Functions in multiple exchange modes involving pairs of these anions, which include chloride-bicarbonate, chloride-oxalate, oxalate-formate, oxalate- sulfate and chloride-formate exchange. Apical membrane chloride- bicarbonate exchanger that mediates luminal chloride absorption and bicarbonate secretion by the small intestinal brush border membrane and contributes to intracellular pH regulation in the duodenal upper villous epithelium during proton-coupled peptide absorption, possibly by providing a bicarbonate import pathway. Also mediates intestinal chloride absorption and oxalate secretion, thereby preventing hyperoxaluria and calcium oxalate urolithiasis. Transepithelial oxalate secretion, chloride-formate, chloride-oxalate and chloride-bicarbonate transport activities in the duodenum are inhibited by PKC activation in a calcium-independent manner. The apical membrane chloride-bicarbonate exchanger also provides a major route for fluid and bicarbonate secretion into the proximal tubules of the kidney as well as into the proximal part of the interlobular pancreatic ductal tree, where it mediates electrogenic chloride-bicarbonate exchange with a chloride- bicarbonate stoichiometry of 1:2, and hence will dilute and alkalinize protein-rich acinar secretion. Also mediates the transcellular sulfate absorption and oxalate secretion across the apical membrane in the duodenum and the formate ion efflux at the apical brush border of cells in the proximal tubules of kidney. Plays a role in sperm capacitation by increasing intracellular pH. {ECO:0000250|UniProtKB:Q8CIW6, ECO:0000269|PubMed:20501439, ECO:0000269|PubMed:27681177}. [Isoform 4]: Apical membrane chloride-bicarbonate exchanger. Its association with carbonic anhydrase CA2 forms a bicarbonate transport metabolon; hence maximizes the local concentration of bicarbonate at the transporter site. .