The present disclosure provides pyrrolopyrimidine compounds and methods of use therefor. For example, the disclosure provides certain pyrrolopyrimidine compounds capable of inhibiting JAK kinases. The disclosure further provides the pharmaceutical compositions containing these pyrrolopyrimidine compounds, and use of these pyrrolopyrimidine compounds in the treatment of disorders or diseases, such as inflammatory diseases and cancer.