If HSBC is leaving, why still bank on Brazil?
Making money through lending should not be a problem for banks operating in Brazil.
The country's interest rates are currently at an eye-watering 13.75% and expected to rise even higher this year.
So it comes as something of a surprise that HSBC has announced this week it will practically end its operation in Latin America's largest economy - retaining only a few large corporate clients.
Banks in Brazil are one of the few sectors that have been immune to the country's slowdown.
As Brazil heads for recession now, financial institutions are still posting record profits.
Last year, the country's economy grew 0.1% - yet Brazil's top five banks managed to increase their profits by 20%.
The sixth largest - HSBC - lost $247m (£160m).
How did HSBC start off in Brazil?
A branch of HSBC in Rio de Janeiro
Brazil might seem like a paradise for bankers now, but that was not the case in 1997, when HSBC first arrived.
The government had just revamped most of the nation's outdated financial structure as part of Plano Real - the economic plan that ended decades of hyperinflation.
Brazil's banks were not used to making money in an economy with stable prices. Under new rules, seven banks nearly went bankrupt.
Under much criticism, the government offered a $10bn (£6.5bn) lifeline to those in trouble, to avoid a general collapse of the system - similar to what was later done by Western governments during the 2008 financial crisis.
Among the rescued banks was Bamerindus, a very popular retail institution with more than 1,000 agencies across Brazil. They were bought by HSBC.
How did banking succeed in Brazil?
Over the following years, bankers had a great run.
As Brazil became an economic emerging star, millions were lifted from poverty and finally had enough money to be included in the financial system, through bank accounts.
Competition and efficiency flourished, with foreign groups such as Spain's Santander and Netherland's ABN Amro investing heavily in Latin America.
But one single factor remained vital for bankers - Brazil's growth model depended on high interest rates.
For decades, under different governments, inflation was kept in check with a monetary policy that favoured money-lending institutions.
High rates hurt business people who wanted to borrow money to open up shops or factories that could potentially create more jobs.
But it was crucial to keep general prices low with higher borrowing costs.
What about the change in government?
Dilma Rousseff took office on 1 January 2011
That remained the case until 2011, when President Dilma Rousseff came to power.
Her government believed Brazil had reached a point where it could abandon its high-interest-rate growth model and start a policy that would favour investments, with cheaper credit in the markets.
Interest rates in Brazil:
June 2015: 13.75%
2014: 11.75%
2013: 10.00%
2012: 7.25%
2011: 11.00%
2010: 10.75%
2009: 8.75%
2008: 13.75%
2007: 11.25%
2006: 13.25%
2005: 18.00%
2004: 17.75%
The Central Bank lowered rates from double digits to its lowest point in a decade, 7.25%.
President Rousseff was also intent on fighting bankers' profits, which were considered obscene by many in her left-leaning coalition.
Under her orders, big public banks - such as Banco do Brasil and Caixa Economica Federal - offered low interest rates to customers, making private banks follow suit and lower their "spreads" (bankers' returns).
But President Rousseff's war on private banks and spreads came to an end in 2013, when it became clear that inflation was creeping up again.
Despite all efforts, Brazil's economy still depended on high interest rates.
Brazil has since embarked on a new cycle of increasing rates. Just last month, the Central Bank raised its rate yet again.