The invention according to the present application provides a therapeutic or prophylactic agent for diseases including mood disorders, anxiety disorders, schizophrenia, Alzheimer's disease, Parkinson's disease, Huntington's chorea, eating disorder, hypertension, digestive diseases, drug dependence, epilepsy, cerebral infarction, cerebral ischemia, cerebral edema, head injury, inflammations, immune-related diseases and alopecia. Specifically provided is an azole derivative having an arginine-vasopressin 1b receptor antagonistic activity and represented by general formula (I) or a pharmaceutically acceptable salt thereof.