Dozens of teenagers, some as young as 14, had been held for nearly three months in a squalid detention center that houses murder suspects. They faced treason charges and possible death sentences for alleged participation in protests against Nigeria’s government.

But since they were arraigned in a courtroom on Friday, their appearance there shocked people around the country, creating a wave of indignation at their treatment. Videos showed the boys, gaunt and haggard, hastily grabbing crackers handed to them, collapsing or just staring around blankly.

Nigerian President Bola Ahmed Tinubu has since ordered their immediate release and the opening of an investigation into their arrest and ordeal in detention. Authorities have dropped all charges against them.

But the announcements may do little to calm the widespread outrage that has gripped Africa’s most populous country for months, over economic policies adopted by Tinubu’s administration that Nigerians say are making them hungrier and poorer.

— The Associated Press