The invention belongs to the field of pharmacy and tumor diagnosis and treatment, and particularly relates to a compound serving as a cyclin-dependent kinase 7 (CDK7) inhibitor, and application of thecompound in treatment of proliferative diseases such as cancers including breast cancer, ovarian cancer, colon cancer, liver cancer, lung cancer and glioma. The CDK7 small-molecule inhibitor is a compound with the structural general formulas (I)-(X), or a stereoisomer, a pharmaceutically acceptable salt, solvate, hydrate, polymorph, co-crystal, tautomer, isotope labeled derivative or prodrug thereof. The small-molecule inhibitor provided by the invention is wide in anticancer spectrum; the compound has a good growth inhibition effect on various cancer cells such as liver cancer, stomach cancer, colorectal cancer, ovarian cancer, glioma, lung cancer and the like, provides an effective drug for preventing or treating proliferative diseases, especially cancers, in the aspects of structure and action mechanism, and has a good application prospect.