Mr Qadri's march from Lahore to the capital culminated in a mass rally on Monday evening.
BBC: Pakistan government seeks end to cleric Qadri's protest
Followers of the charismatic cleric Tahirul Qadri are demanding the resignation of the government.
BBC: Pakistan government seeks end to cleric Qadri's protest
"We have reached an agreement, " Mr Qadri told his supporters said after the deal was reached.
Tahirul Qadri and his supporters were demanding that the government resign ahead of elections due in May.
Tahirul Qadri's flamboyant preaching style and expensive television campaigns have raised his profile in Pakistan in recent weeks.
However, Mr Qadri's demand that the army be consulted on the structure of the interim administration was rejected.
Mr Qadri's flamboyant preaching style and expensive television campaigns have raised his profile in Pakistan in recent weeks.
Al Qadri speaks passionately about peace and humility, leaning back in his chair then lurching forward with each point.
While the others bow fully to the floor Al Qadri, in his old age, remains sitting on a plastic chair.
Authorities in the capital had warned that Mr Qadri and his supporters would not be allowed into the city centre.
"It has been an honourable exit for both sides, " Mr Qadri said.
Al Qadri suddenly excuses himself as he and his supporters move to an adjoining room, where he leads them in regular Islamic prayer, or salah.
Community elder Imran Qadri told reporters that after prolonged deliberations between the two families and community elders, Malik had granted a divorce to Ayesha Siddiqui, thus admitting he had married her.
Like memo-gate, Mr Qadri too has come in for widespread criticism over his motive to strike at a time when the elections are just four months away, and over the sources of his funds.
There has been speculation that Mr Qadri may be fishing for a role for the military and the judiciary when it comes to the appointment of a caretaker government to oversee over the forthcoming elections.
应用推荐