A compound represented by formula (I) and having a property of modulating the activity of an androgen receptor, or a pharmaceutically acceptable salt of the compound. X represents S or O; Z represents (Ra)n-A-(CR13R14)0-1-(CR11R12)0-1-; A represents an aryl group or a heteroaryl group; R1 represents an alkyl group, a cycloalkyl group, an alkenyl group, an alkynyl group, an alkoxyalkyl group, an aryl group, an arylalkyl group, a heterocyclic group or a heterocyclic alkyl group; R2 represents a hydrogen atom, a halogen atom, an alkyl group, a cycloalkyl group or a phenyl group; R3 represents a hydrogen atom, a halogen atom, an alkyl group, a cycloalkyl group, an alkoxyalkyl group, an alkenyl group, an alkynyl group, a cycloalkenyl group, an aryl group, an arylalkyl group, a heterocyclic group, a heterocyclic alkyl group, an acyl group, a cycloalkylcarbonyl group, a benzoyl group, a spiroalkyl group, an adamantyl group, a silyl group or R31R32NCO-; and R4 and R5 independently represent a hydrogen atom, a halogen atom, an alkyl group, a phenyl group or a cycloalkyl group.本發明係關於下述式所示具有雄激素受體的活性調節作用之化合物或其醫藥上可被許可的鹽。X表示S、O,Z表示(Ra)n-A-(CR13R14)0-1-(CR11R12)0-1-,A表示芳基、雜芳基,R1表示烷基、環烷基、烯基、炔基、烷氧基烷基、芳基、芳基烷基、雜環、雜環烷基,R2表示氫、鹵素、烷基、環烷基、苯基R3表示氫、鹵素、烷基、環烷基、烷氧基烷基、烯基、炔基、環烯基、芳基、芳基烷基、雜環、雜環烷基、醯基、環烷基羰基、苯甲醯基、螺烷基、金剛烷基、矽基、R31R32NCO-,R4、R5表示氫、鹵素、烷基、苯基、環烷基。