The present invention provides agents for treating or preventing diseases such as mood disorder, anxiety disorder, schizophrenia, Alzheimer's disease, Parkinson's disease, Huntington's chorea, eating disorder, hypertension, gastrointestinal disease, drug addiction, epilepsy, cerebral infarction, cerebral ischemia, cerebral edema, head injury, inflammation, immune-related disease, alopecia, and so forth. Specifically, the invention provides azole derivatives represented by general formula (I), or pharmaceutically acceptable salts thereof that have an antagonistic action against the arginine-vasopressin (AVP) V1b receptor: