On 8 August 1998, the Taliban massacred 4,000 Shias in the town of Mazar-i-Sharif, Afghanistan. It also attacked and killed 11 Iranian diplomats with an Iranian journalist among them. The rest of the diplomats were taken hostage. Ayatollah Khamenei ordered the amassing of troops near the Iran Afghanistan border to enter Afghanistan and fight the Taliban. Over 70,000 Iranian troops were placed along the borders of Afghanistan. Khatami halted the invasion and looked to the UN for help. Soon he was placed in talks. Later Iran entered negotiations with the Taliban, the diplomats were released. Khatami and his advisers had managed to keep Iran from entering war with the Taliban.