The following general formula (I) (In the formula, R 1 represents a hydrogen atom, a C 1-6 alkyl group which may have a substituent, etc. R 2 and R 3 represent the same or different hydrogen atoms, hydroxy groups, etc. R 4 represents a hydrogen atom, a halogen atom, a hydroxy group, etc. R 5 indicates a hydrogen atom, a hydroxy group, etc. R 6 represents a hydrogen atom, a C 1-6 alkyl group, etc. R 7 and R 8 indicate the same or different hydrogen atom, C 1-6 alkyl group, etc. R 9 represents a hydrogen atom, a C 1-6 alkyl group, a C 6-10 aryl group which may have a substituent, and the like. X indicates a nitrogen atom, etc. Y indicates an oxygen atom, etc. n represents an integer from 0 to 3. ) A morphinan derivative represented by, a tautomer of the compound, a stereoisomer, a deuterium substituent or a pharmaceutically acceptable salt thereof or a solvate thereof, a drug containing these as an active ingredient, an analgesic, Antipruritic.次の一般式(I)(式中、R1は水素原子、置換基を有していてもよいC1-6アルキル基等を示し、R2及びR3は同一又は異なって水素原子、ヒドロキシ基等を示し、R4は水素原子、ハロゲン原子、ヒドロキシ基等を示し、R5は水素原子、ヒドロキシ基等を示し、R6は水素原子、C1-6アルキル基等を示し、R7、R8は同一又は異なって水素原子、C1-6アルキル基等を示し、R9は水素原子、C1-6アルキル基、置換基を有していてもよいC6-10アリール基等を示し、Xは窒素原子等を示し、Yは酸素原子等を示し、nは0~3の整数を表す。)で表されるモルヒナン誘導体、該化合物の互変異性体、立体異性体、重水素置換体若しくはその薬学的に許容される塩又はそれらの溶媒和物及びこれらを有効成分とする医薬、鎮痛薬、止痒薬。