The present invention provides a heterocyclic compound having CXCR4 signaling pathway inhibitory activity, and a pharmaceutically acceptable salt, an isotope, an isomer and a crystal form structure thereof, wherein the compound has a structure represented by a general formula I defined in the specification. The present invention further provides applications of the heterocyclic compound having CXCR4 signaling pathway inhibitory activity. According to the present invention, the heterocyclic compound having CXCR4 signaling pathway inhibitory activity, as the effective antagonist of the CXCR4 signaling pathway, can be used for treating or preventing diseases responsive to CXCR4 receptor antagonism.