Disclosed is a novel compound that acts as an antagonist for P2X3 and/or P2X2/3 receptors. Also disclosed is a pharmaceutical composition that exhibits analgesic activity or acts to ameliorate urinary problems, said composition containing: a compound represented by formula (I), a pharmacologically permitted salt thereof, or a solvate of either. In the formula, Rh and Rj together form a bond Ra and Rb, and/or Rd and Re, together form an oxo or the like Rc represents hydrogen, a substituted or unsubstituted alkyl, or the like -Rf represents -(CR4aR4b) n -R2 R4a and R4b represent hydrogen, a substituted or unsubstituted alkyl, or the like R2 represents a substituted or unsubstituted cycloalkyl or the like n represents an integer from 1 to 4 -Rg represents -X-R3 -X- represents -O-, -S-, or the like and R3 represents a substituted or unsubstituted cycloalkyl or the like.La presente invención proporciona nuevos compuestos que tienen efecto antagonista del receptor PZX3 y/o P2X2/3, y una composición farmacéutica que tiene efecto analgésico o un efecto mejorador de transtorno de micción que comprende un compuesto de la Fórmula (I) (Ver Formula) en donde Rh y Rj se toman conjuntamente para formar un enlace Ra y Rb y/o Rd y Re se toman conjuntamente para formar oxo o similares Rc es hidrógeno, alquilo sustituido o no sustituido o similares -Rf es -(CR4aR4b)n-R2 R4a y R4b son hidrógeno o alquilo sustituido o no sustituido o similares n es un número entero de 1 a 4 Rg es -X-R3- -X- es -O-, -S-, o similares R3 es cicloalquilo sustituido o no sustituido o similares, o su sal farmacéuticamente aceptable o un solvato del mismo.