For the prevention and/or treatment of chymase-mediated diseases such as skin diseases, circulatory diseases, digestive system diseases, respiratory diseases, liver diseases, ocular diseases or the like, a drug is provided having as an active ingredient a compound having extremely strong chymase inhibitory activity, high safety, and high metabolic stability. The compound represented by the formula (I):wherein all symbols have the same meanings as in the description,a salt thereof, an N-oxide thereof or a solvate thereof, or a prodrug thereof, is useful as a pharmaceutical ingredient having chymase inhibitory activity for preventing and/or treating of chymase-mediated disease, such as skin diseases, circulatory diseases, digestive system diseases, respiratory diseases, liver diseases, ocular diseases or the like.