Minerals, agriculture and primary products have long accounted for half of Brazil's exports. The bulk of these go to one market, China - even as the latter threatened the competitiveness of Brazilian manufactured goods. The long commodities boom masked these inherent problems, and the country's abundant production of oil, iron ore, soyabean and corn financed Mr Silva's pork-barrel policies. The signature Bolsa Familia welfare programme, which has become a global model for poverty reduction, was predicated on cash from a long-term commodities boom.
But, when the commodity prices began collapsing in mid-2014, Ms Rousseff's belated effort to raise revenues through higher taxes proved ineffective, even as household debt - the other consequence of the stimulus - curtailed consumer spending. Thus, in 2015, the Brazilian economy shrank 3.8 per cent in 2015, the worst performance in a quarter century. Inflation is now in double digits, the country's credit rating has been downgraded to junk status and unemployment has surged above nine per cent. In January, despite a record budget deficit of 10 per cent, Ms Rousseff announced a spending package for agriculture, infrastructure, industry and construction. But this last-ditch populism was doomed simply because there is no money to spend: government debt is now 67 per cent of GDP. Unsurprisingly, her approval ratings plunged even further; her efforts, ultimately unsuccessful, to induct Mr Silva into her cabinet to shield him from legal action in the Petrobras case worsened matters. Ms Rousseff's predicament carries a cautionary tale. The most solid of the BRIC countries just a few years ago, Brazil has become an object lesson for emerging economies on how dangerous it is to avoid tough structural reform when the going is good.