Compounds and pharmaceutical compositions that modulate kinase activity, including PI3 kinase activity, and compounds, pharmaceutical compositions, and methods of treatment of diseases and conditions associated with kinase activity, including PI3 kinase activity, are described herein.