SANAA, Yemen (AP) — Yemen’s new president Abed Rabo Mansour Hadi has been sworn in before the country’s parliament, replacing Ali Abdullah Saleh who ruled the country for 33 years before leaving office in a power transfer deal aimed at ending over a year of political turmoil.

Hadi, who was Saleh’s vice president, was formally inaugurated Saturday following a single-candidate presidential election earlier in the week.

Saleh returned to Yemen early Saturday after spending about three weeks in the U.S. receiving treatment for injuries he suffered during a June rocket attack on his compound.

Saleh is the fourth Arab leader swept from power by the Arab Spring.