Surrounded by hundreds of Afghan officials, many former warlords and rivals themselves, Ghani signed a pact that opens the door to the militant faction of Hezb-i-Islami, led by Hekmatyar, playing an active role in politics.
A controversial figure from the insurgency against the Soviets in the 1980s and the civil wars of the 1990s, Hekmatyar has been designated a "global terrorist" by the United States, which has been leading an international military mission in Afghanistan for the past 15 years.
As part of the deal, the Afghan government agreed to lobby international organizations to lift sanctions on Hekmatyar and Hezb-i-Islami.