The former Taleban ambassador to Pakistan has been released after four years at the US detention centre at Guantanamo Bay in Cuba.
Afghans held at Guantanamo are to be gradually repatriated
Afghan TV showed Mullah Abdul Salam Zaeef being received by the head of the Afghan Peace and Reconciliation Commission, Sibghatullah Mujaddedi.
Mr Zaeef held senior positions in the Taleban government before it was driven from power in 2001 by US forces.
Before his arrest he had become the public voice of the embattled Taleban.
His release comes ahead of parliamentary elections in Afghanistan on Sunday.
Some months ago, Mr Mujaddedi offered to extend a government amnesty to former Taleban leaders.
Last month Afghan and US officials said Afghans held at Guantanamo would gradually be repatriated and put in the custody of the Afghan government.