As the so-called Islamic State (IS) loses territorial control of its caliphate, there is little doubt that the group or something similar will survive the worldwide campaign against it so long as the conditions that promoted its growth remain. Its appeal will outlast its demise, and while it will be hard to assess the specific threat posed by foreign fighters and returnees, they will present a challenge to many countries for years to come.