The present disclosure describes novel TRK kinase inhibitors and methods for preparing them. The pharmaceutical compositions comprising such TRK kinase inhibitors and methods of using them for treating cancer, infectious diseases, and other disorders are also described.本揭露描述新型TRK激酶抑制劑及其製備方法。亦描述包含該TRK激酶抑制劑的醫藥組合物及使用它們治療癌症、感染性疾病及其他病變的方法。