<Tr> <Th> Flag </Th> <Td> </Td> </Tr> <Tr> <Th> Variant flag </Th> <Td> </Td> </Tr> <P> The International Security Assistance Force (ISAF) was a NATO - led security mission in Afghanistan, established by the United Nations Security Council in December 2001 by Resolution 1386, as envisaged by the Bonn Agreement . Its main purpose was to train the Afghan National Security Forces (ANSF) and assist Afghanistan in rebuilding key government institutions, but was also engaged in the 2001--present war with the Taliban insurgency . </P> <P> ISAF was initially charged with securing Kabul and the surrounding areas from the Taliban, al Qaeda and factional warlords, to allow for the establishment of the Afghan Transitional Administration headed by Hamid Karzai . In October 2003, the UN Security Council authorized the expansion of the ISAF mission throughout Afghanistan, and ISAF subsequently expanded the mission in four main stages over the whole of the country . From 2006 to 2011, ISAF had become increasingly involved in more intensive combat operations in southern and eastern Afghanistan . </P>

When did nato forces take command in afghanistan