The present invention belongs to the field of pharmaceutical chemistry, and relates to a substituted pyrrolopyrimidine CDK inhibitor, in particular to a compound as shown in formula I or a pharmaceutically acceptable salt or solvate thereof, as well as a preparation method therefor and a pharmaceutical composition thereof. The present invention also relates to the use of the compound and the pharmaceutical composition thereof in the preparation of a drug for treating diseases associated with CDK inhibition. The compound according to the present invention has a marked inhibitory effect on CDK, excellent drug absorption and significantly superior oral absorption effect.本發明屬於藥物化學領域,係關於一種取代的吡咯並嘧啶類CDK抑制劑,具體關於式I化合物或其藥學上可接受的鹽或溶劑化物、其製備方法、藥物組合物,進一步關於這類化合物及其藥物組合物在製備治療與CDK抑制作用相關的疾病的藥物中的用途,本發明的化合物對CDK具有明顯的抑制作用,且藥代吸收良好,具有明顯較佳的口服吸收效果。