The invention discloses a tripterine nitrogen-containing five-membered heterocyclic derivative as well as a preparation method and application thereof, the tripterine nitrogen-containing five-memberedheterocyclic derivative is a compound with a structure as shown in a formula I, and R1, R2, R3, R4 and R5 are respectively selected from H, alkyl, heteroatom-containing alkyl, halogen, cyano nitro orformate group; X is selected from saturated, unsaturated, linear or branched aliphatic hydrocarbon fragments containing 2 to 6 carbon atoms. The preparation method of the compound has the advantagesof mild reaction conditions, low toxicity of used reagents, accessible raw materials, convenient post-treatment and higher yield. Pharmacological experiment research shows that the compound has excellent anti-tumor activity and can be well applied to preparation of anti-tumor drugs.