Mr. Diarra announced his resignation after hours of being detained by soldiers, the BBC reports.

He was scheduled to travel to France for a medical check-up, before his arrest and detention in his house in Bamako, the Malian Capital, on Monday, by soldiers who partook in the military coup of March.

The arrest was reportedly done on the orders of the coup leader, Amadou Sanogo.

“Men and women who are worried about the future of our nation, you are hoping for peace. It’s for this reason that I, Cheikh Modibo Diarra, am resigning along with my entire government, ” the former Prime Minister said while resigning.

Mali has been in crisis since March when soldiers toppled the civilian regime. The soldiers accused the government of not doing enough to check the Islamist rebels in the north of the country. The rebels have since controlled the North of Mali since the soldiers took over.