Provided is a compound as represented by formula I, or pharmaceutically acceptable salt, hydrate or solvate thereof. Also provided in the present invention are new uses of the compound or the pharmaceutically acceptable salt, hydrate or solvate thereof. The pyrrolopyrimidine compound prepared in the present invention can significantly reduce fasting blood sugar of mice with diabetes and has high safety, providing clinical medication with a new option.La présente invention concerne un composé de formule I, ou un sel, hydrate ou solvate pharmaceutiquement acceptable de celui-ci. Linvention concerne également de nouvelles utilisations de ce composé ou de son sel, hydrate ou solvate pharmaceutiquement acceptable. Le composé pyrrolopyrimidine préparé selon la présente invention peut réduire de façon significative la glycémie à jeun chez la souris diabétique et il offre une grande sécurité, ce qui offre une nouvelle possibilité à la médication clinique.