The present invention relates to a compound represented by formula (I-0):wherein symbols in formula have the same meanings as described in the present specification, a salt thereof, an N-oxide thereof or a solvate thereof or a prodrug thereof, and medical use thereof. The compound of the present invention has an antagonistic activity against CXCR4 and is therefore useful as a preventive and / or therapeutic agent for CXCR4-mediated diseases, for example, inflammatory and immune diseases (for example, rheumatoid arthritis, arthritis, retinopathy, pulmonary fibrosis, transplanted organ rejection, etc.), allergic diseases, infections (for example, human immunodeficiency virus infection, acquired immunodeficiency syndrome, etc.), psychoneurotic diseases, cerebral diseases, cardiovascular disease, metabolic diseases, and cancerous disease (for example, cancer, cancer metastasis, etc.), or an agent for regeneration therapy.