Compounds of general formula (I) and compositions comprising compounds of general formula (I) that modulate pyruvate kinase are described herein. Also described herein are methods of using the compounds that modulate pyruvate kinase in the treatment of diseases.