A novel pyrrolopyridine derivative which is a compound represented by the formula
wherein Ring A represents an optionally substituted pyridine ring; X represents an electron-attracting group; Y represents an optionally substituted divalent C
1-6
chain hydrocarbon group; R
1
represents an optionally substituted hydrocarbon group; and R
2
and R
3
each independently represents hydrogen, an optionally substituted hydrocarbon group or an optionally-substituted heterocyclic group, or R
2
and R
3
may form an optionally substituted ring in cooperation with the adjacent nitrogen atom, or a salt of the compound. The pyrrolopyridine derivative has vanilloid receptor agonist activity and is useful as medicines such as a preventive/therapeutic agent and analgesic for overactive bladder.