Provided herein are methods for identifying compounds that are inhibitors of a calcium-activated chloride channel. Aminothiophene and aminothiazole compounds, and compositions comprising these compounds, described herein that inhibit efflux of chloride through a calcium-activated chloride channel are useful for treating diseases, disorders, and sequelae of diseases, disorders, and conditions that are associated with aberrantly increased chloride and fluid secretion, for example, secretory diarrhea.