The present invention provides a kind of pair of inhibited compound of what androgen receptor. A kind of tetrahydropyridine and pyrimidine compound or its pharmaceutically acceptable salt indicate (in formula, definition is the same as that in the specification by X and R) by the following general formula (I).本發明提供一種對於雄激素受體具有抑制作用的化合物。一種四氫吡啶并嘧啶化合物或其藥學上可接受的鹽,其由下述通式(I)表示(式中,X和R的定義與說明書中的定義相同)。