Afghanistan signed a draft peace agreement with notorious warlord Gulbuddin Hekmatyar.
Under the terms of the deal Hekmatyar should accept the constitution and abandon violence.
It will pave the way for him to make a political comeback despite a history of war crimes and after years in hiding.
Hekmatyar, who heads the now largely dormant Hezb-i-Islami militant group, is the latest in a series of controversial figures that Kabul has sought to reintegrate in the post-Taliban era by granting judicial immunity for past crimes.
The agreement will come into force when it is formally signed by Ghani and Hekmatyar, though no date has been set.