Answer
Khalilzad served as the United States Ambassador to Afghanistan from 2004 to 2005. During this time, he played a crucial role in representing the interests of the United States in the complex political landscape of Afghanistan, which was marked by ongoing conflicts and the need for international cooperation.