The U.N. secretary-general's envoy to Yemen says all parties have agreed on a plan under which longtime President Ali Abdullah Saleh would step down.
Several times Saleh has agreed to the plan, sponsored by Gulf nations, but backed away at the last minute.
U.N. envoy Jamal bin Omar told reporters Tuesday he was working now on setting a date for signing the deal.
"All parties agreed today on the Gulf initiative and the implementation of its mechanism," he said.
He met Yemen's vice president, Abed Rabbo Mansour Hadi. The deal calls for Saleh to transfer power to the vice president in exchange for immunity from prosecution.
Saleh has hung onto power despite months of mass protests. Al-Qaida linked militants have used the turmoil to strengthen their positions in Yemen.