The compound represented by formula (I), a salt thereof, an N-oxide thereof, a solvate thereof, or a prodrug thereof specifically binds CCR5, so it is useful for preventing and / or treating CCR5-related diseases, for example, various inflammatory diseases (asthma, nephritis, nephropathy, hepatitis, arthritis, rheumatoid arthritis, rhinitis, conjunctivitis, ulcerative colitis, etc.), immunological diseases (autoimmune diseases, rejection in organ transplantation, immunosuppression, psoriasis, multiple sclerosis, etc.), infectious diseases (infection with human immunodeficiency virus, acquired immunodeficiency syndrome, etc.), allergic diseases (atopic dermatitis, urticaria, allergic bronchopulmonary aspergillosis, allergic eosinophilic gastroenteritis, etc.), ischemic reperfusion injury, acute respiratory distress syndrome, shock accompanying bacterial infection diabetes cancer metastasis and so onWherein all symbols in formula are as defined in the specification.