Disclosed are a triptolide derivative and a preparation method therefor and the use thereof. The triptolide derivative has the structure as shown in general formula I, and the definition of each substituent is as described in the description and claims. The triptolide derivative of the present invention has a better immunosuppressive activity and anti-tumor activity, and low toxicity and high safety, thus having good development and application prospects.