Electron cryo-microscopy density maps of mouse TMEM16A reconstituted in nanodiscs or solubilized in detergent reveal two functional states of calcium-activated chloride channels. The diverse TMEM16 membrane protein family contains Ca(II)-activated chloride channels, lipid scramblases and cation channels. TMEM16A mediates chloride-ion permeation, which controls neuronal signalling, muscle contraction and numerous other physiological functions. In this issue of Nature, two groups have solved the structure of TMEM16A by using cryo-electron microscopy, providing insights into the function of this channel. Unlike other ligand-gated ion channels, the Ca(II) ion interacts with the pore directly, where a glycine residue acts as a flexible hinge to adjust calcium sensitivity. Raimund Dutzler and colleagues report the structure of the protein in both Ca(II)-free and Ca(II)-bound states, which shows how calcium binding facilitates the structural rearrangements involved in channel activation. In the second Letter, Lily Jan and colleagues present two functional states of TMEM16A in the glycolipid LMNG and in nanodiscs, with one and two Ca(II) ions bound, respectively. The closed conformation observed in nanodiscs is proposed to show channel rundown after prolonged Ca(II) activation. Calcium-activated chloride channels (CaCCs) encoded by TMEM16A1,2,3 control neuronal signalling, smooth muscle contraction, airway and exocrine gland secretion, and rhythmic movements of the gastrointestinal system4,5,6,7. To understand how CaCCs mediate and control anion permeation to fulfil these physiological functions, knowledge of the mammalian TMEM16A structure and identification of its pore-lining residues are essential. TMEM16A forms a dimer with two pores8,9. Previous CaCC structural analyses have relied on homology modelling of a homologue (nhTMEM16) from the fungus Nectria haematococca that functions primarily as a lipid scramblase10,11,12, as well as subnanometre-resolution electron cryo-microscopy12. Here we present de novo atomic structures of the transmembrane domains of mouse TMEM16A in nanodiscs and in lauryl maltose neopentyl glycol as determined by single-particle electron cryo-microscopy. These structures reveal the ion permeation pore and represent different functional states. The structure in lauryl maltose neopentyl glycol has one Ca2+ ion resolved within each monomer with a constricted pore; this is likely to correspond to a closed state, because a CaCC with a single Ca2+ occupancy requires membrane depolarization in order to open (C.J.P. et al., manuscript submitted). The structure in nanodiscs has two Ca2+ ions per monomer and its pore is in a closed conformation; this probably reflects channel rundown, which is the gradual loss of channel activity that follows prolonged CaCC activation in 1 mM Ca2+. Our mutagenesis and electrophysiological studies, prompted by analyses of the structures, identified ten residues distributed along the pore that interact with permeant anions and affect anion selectivity, as well as seven pore-lining residues that cluster near pore constrictions and regulate channel gating. Together, these results clarify the basis of CaCC anion conduction.