Provided is a compound which has an inhibitory effect on an androgen receptor. A tetrahydropyridopyrimidine compound represented by general formula (I) or a pharmaceutically acceptable salt thereof. (In the formula, X and R are as defined in the description.)本發明提供一種對雄激素受體具有抑制作用之化合物。本發明之四氫吡啶并嘧啶化合物或其藥學上所容許之鹽係由下述通式(I)所表示(式中,X及R係如說明書中所定義)。