The present disclosure relates to heterocyclic compounds, pharmaceutically acceptable salts thereof, and pharmaceutical preparations thereof. Also described herein are compositions and the use of such compounds in methods of treating diseases and conditions mediated by deficient CFTR activity, in particular cystic fibrosis.