The present invention relates to a thienopyrimidine compound, a preparation method therefor, a pharmaceutical composition, and applications. Specifically, the present invention relates to a compound having ALK and/or c-Met selective inhibitory activity, a preparation method for the compound, a pharmaceutical composition including the compound, a use of the compound in the preparation of a drug used for preventing or treating diseases related to anaplastic lymphoma kinase in organisms, and a use of the compound in the preparation of a drug used for preventing or treating diseases related to angiogenesis or cancer metastasis, especially a use of the compound in the preparation of a drug used for preventing or treating tumour growth and metastasis.