Quantum coherence is not only a fundamental notion in quantum theory but also an invaluable resource for quantum information processing. We investigate the nonlocal advantage of quantum coherence (NAQC) in the Heisenberg model, aimed at seeking flexible ways for its control. By considering impurities, or more explicitly, the inhomogeneous spin couplings and nonuniform magnetic field, in such a model, we showed that an efficient nonlocal control of the NAQC can be realized, and there exists a wide impurity parameter region for which the NAQC takes the value a little less than its maximum 1. Moreover, the critical temperature after which the NAQC vanishes can also be enhanced evidently by tuning the impurity parameters.