The invention belongs to the technical field of organic synthetic drugs, and particularly relates to a pyrazolopyrimidine derivative and a preparation method and medical uses thereof. The invention provides a new pyrazolopyrimidine derivative mainly having position 4 substituted, i.e., position substituted by Y in formula I. The pyrazolopyrimidine derivative of the invention has a structural formula I as follows:The invention provides a new pyrazolopyrimidine derivative and a simple, efficient and low-cost preparation method thereof. The pyrazolopyrimidine derivative of the invention has good inhibitory activity for multiple kinases, has inhibitory action on multiple solid tumors, leukemia and autoimmune diseases, provides a new effective choice for preparation of kinase inhibitors, medicines for autoimmune diseases, angiogenesis inhibitors and antitumor drugs, and has good application prospect.