In 2014, Obama announced that most troops would leave Afghanistan by late 2016, with a small force remaining at the US embassy. In September 2014, Ashraf Ghani succeeded Hamid Karzai as the President of Afghanistan after the U.S. helped negotiate a power-sharing agreement between Ghani and Abdullah Abdullah.
