[PROBLEMS] To provide a therapeutic or prophylactic agent for frequent urination,urinary urgency or urinary incontinence associated with a lower urinary tractdisease including overactive bladder, a lower urinary tract disease accompaniedby a lower urinary tract pain such as interstitial cystitis and chronic prostatitis,or a disease accompanied by a pain, whose activity relies on its excellent trkAreceptor-inhibiting activity. [MEANS FOR SOLVING PROBLEMS] Disclosed is anovel azolecarboxamide compound having a thiazole or oxazole ring bound to abenzene, pyridine, pyridazine, thiophene, pyrazole or pyrrole ring througha carboxamide or a salt of the azolecarboxamide compound. It is confirmed thatthe azolecarboxamide compound or the salt thereof has a potent trkA receptor-inhibitingactivity. It is found that the azolecarboxamide compound or the salt thereofcan be used as a highly effective and highly safe therapeutic or prophylacticagent for frequent urination, urinary urgency or urinary incontinence associatedwith a lower urinary tract disease including overactive bladder, a lower urinarytract disease accompanied by a lower urinary tract pain such as interstitialcystitis and chronic prostatitis, or a disease accompanied by a pain.