The foreign volunteers in Afghanistan saw the Soviet defeat as a victory for Islam against a superpower that had invaded a Muslim country. Estimates of the number of foreign fighters who fought in Afghanistan begin in the low thousands; some spent years in combat, while others came only for what amounted to a jihad vacation. The jihadists gained legitimacy and prestige from their triumph both within the militant community and among ordinary Muslims, as well as the confidence to carry their jihad to other countries where they believed Muslims required assistance. When veterans of the guerrilla campaign returned home with their experience, ideology, and weapons, they destabilized once-tranquil countries and inflamed already unstable ones.