At least eight people have died and 200 have been wounded in Sri Lanka after security forces and anti-government protesters clashed amid the country’s worst economic downturn since independence in 1948.

The country’s Prime Minister, Mahinda Rajapaksa, has resigned, with his younger brother, President Gotabaya Rajapaksa, trying to find a way out of the chaos. But how did one of the wealthiest nations in South Asia reach this devastating situation? Here’s what you need to know.