A compound has Bruton's tyrosine kinase (Btk)-inhibition and degradation activity as represented by formula I. The compound has excellent Btk-inhibition activity and can degrade Btk, and can be used for preparing drugs for treatment of Btk activity-related diseases. (I)