The invention discloses a pyrimidine antitumor compound with Hedgehog antagonist activity, comprising the compound and pharmaceutically acceptable salts, various isotopes, various isomers or various crystal structures thereof. The pyrimidine antitumor compound has the structure shown as the general formula I, wherein, A refers to nitrogen atom or C-R9, n is 0, 1, 2, 3, 4, 5 or 6; the R1, R2, R3, R4, R5, R6, R7, R8 and R9 are independently selected from hydrogen atom, alkyl, alkenyl, alkynyl, aromatic ring group, heterocyclic radical or heteroatom functional group-containing substituent group, respectively. The antitumor compound provided by the invention can block Hedgehog through blocking an SMO (Smoothened receptor) so as to inhibit cell abnormal growth and block tumor cell migration generation, and has an obvious antitumor effect.