The permanent ouster of deeply unpopular President Dilma Rousseff by Brazil’s Senate means that a man who is arguably just as unpopular is now faced with trying to ease the wounds of a divided nation mired in recession.

Long known as an uncharismatic backroom wheeler-dealer, Michel Temer inherits a shrinking economy, a Zika virus outbreak that has ravaged poor northeastern states and political instability fed by a sprawling corruption probe that has tarred much of the country’s political and business elite—himself included.