NEW YORK (

TheStreet

) -- Yemen's president is handing over power to his vice president following an uprising to end his rule of 33 years.

President Ali Abdullah Saleh agreed to a deal to give power to the country's vice president, Abed Rabbo Mansour Hadi, within 30 days, according to

The Associated Press

. An early presidential election will be held in 90 days.

The United States and its Gulf allies pushed for the deal, which was brokered by the Gulf Cooperation Council, because of fears that the uprising in Yemen would lead to al-Qaeda gaining a firmer grip there, the

AP

said.

For about 10 months, Saleh has resisted handing over power despite daily mass protests calling for his removal. In June, there was an assassination attempt that caused Saleh to leave Saudi Arabia for three months to get medical treatment.

Saleh is the fourth Arab leader to have been removed from power this year, after leaders in from Tunisia, Egypt and Libya were toppled. Libya's leader,

Moammar Gaddafi, was killed in October

after leading the country for about 42 years.

--

Written by Alexandra Zendrian