The present invention relates to a crystalline form of (S)-7-(1-(but-2-ynoyl)piperidin-4-yl)-2-(4-phenoxyphenyl)-4,5,6,7-tetrahydropyrazolo[1,5-a]pyrimidine-3-carboxamide for inhibiting Btk, methods of preparation thereof and pharmaceutical compositions, and use of the crystalline form above in the treatment of a disease, or in the manufacturing of a medicament for the treatment of a disease.本發明涉及用於抑制Btk的(S)-7-(1-(丁-2-炔醯基)哌啶-4-基)-2-(4-苯氧基苯基)-4,5,6,7-四氫吡唑幷[1,5-a]嘧啶-3-甲醯胺的晶型、其製備方法和醫藥組合物,以及上述晶型在治療疾病中的用途或在製備用於治療疾病的藥物中的用途。