The present invention relates to a compound represented by the formulawherein ring A is a nitrogen-containing heterocyclering B is an aromatic ring optionally having substituent(s)ring D is an aromatic ring optionally having substituent(s)L is a group represented by the formula R2, R3, R4a and R4b are each independently a hydrogen atom, an optionally halogenated C1-6 alkyl group or an optionally halogenated C3-6 cycloalkyl group, or R2 and R3 are optionally bonded via an alkylene chain or an alkenylene chain, or R4a and R4b are optionally bonded via an alkylene chain or an alkenylene chainR1 is a hydrogen atom or a substituentm and n are each independently an integer of 0 to 5m+n is an integer of 2 to 5 and- - - is a single bond or double bond, or a salt thereof and the like. The compound has a superior tachykinin receptor antagonistic action, and is useful as an agent for the prophylaxis or treatment of various diseases such as lower urinary tract diseases, digestive tract diseases, central neurological disease and the like.