The present invention provides a 2, 6-di-nitrogen-containing substituted purine derivative having a formula (I) structure, or pharmaceutical salt or hydrate thereof, and preparation method and use thereof. The compound is broad spectrum anticancer, low toxicity, high anticancer activity and good stability.