Loss-of-function mutations in the cystic fibrosis transmembrane conductance regulator (CFTR) compromise epithelial HCO3- and Cl- secretion, reduce airway surface liquid pH, and impair respiratory host defences in people with cystic fibrosis1-3. Here we report that apical addition of amphotericin B, a small molecule that forms unselective ion channels, restored HCO3- secretion and increased airway surface liquid pH in cultured airway epithelia from people with cystic fibrosis. These effects required the basolateral Na+, K+-ATPase, indicating that apical amphotericin B channels functionally interfaced with this driver of anion secretion. Amphotericin B also restored airway surface liquid pH, viscosity, and antibacterial activity in primary cultures of airway epithelia from people with cystic fibrosis caused by different mutations, including ones that do not yield CFTR, and increased airway surface liquid pH in CFTR-null pigs in vivo. Thus, unselective small-molecule ion channels can restore host defences in cystic fibrosis airway epithelia via a mechanism that is independent of CFTR and is therefore independent of genotype.