Up until Thursday, the opposition a collection of left-wing, liberal and conservative parties had said it would refuse to join the dialogue until the government agreed to resign within a fixed time period.
On Friday morning, Prime Minister Ali Larayedh issued a written statement promising to dissolve the government in three weeks. The opposition then promised to return to work and complete the writing of the constitution and legislation for elections over the next four weeks.
"This is the start of solving the crisis in Tunisia since all the parties have agreed to accept the dialogue and the assembly members will end their walkout," said Nejib Chebbi, leader of the liberal opposition Jumhouri Party, as he entered the building housing the meeting.
With democracy in many of the other countries that overthrew their rulers during the Arab Spring faltering, Tunisia's transition is being closely watched. While the relations among different parties were often acrimonious, Friday's developments suggest the process is back on track.
In addition to severe economic problems, Tunisia has been battling the rise of a hardline Islamist movement that in many cases has armed itself and carried out attacks. On Wednesday, six members of the National Guard were killed in an operation against militants in the impoverished interior.
Al-Qaida linked gunmen also are believed to have bases in the mountainous regions along the Algerian border.