ISAF was a NATO-led security mission in Afghanistan, established by the United Nations in 2001. Its main purpose was to train the Afghan forces and assist in rebuilding government institutions.