Cheick Modibo Diarra was detained on Monday at his home in the capital Bamako, reportedly on the orders of the coup leader, Capt Amadou Sanogo.
He had been due to travel to France.
Cheick Modibo Diarra, 60, was made prime minister of an interim government in April after the military officially handed power back to civilians.
The astrophysicist has backed plans to send a West African intervention force into the northern half of Mali which was seized after the coup by Islamists and Tuareg separatists.
But tensions between the soldiers who led the coup and the civilian prime minister they were forced to appoint have been mounting in recent weeks.
Many within Mali’s military are opposed to foreign intervention, saying they need only financial and logistical support.
Military spokesman Bakary Mariko said that the prime minister was suspected of attempting to jeopardize the planned political dialogue over the transition to democracy.
“Eight months ago the prime minister was given the mission to help Mali recover its territorial integrity, but unfortunately he has been working to stay in power indefinitely,” he said.
Cheick Modibo Diarra would be held until a new prime minister was appointed by the interim president, the spokesman said.
In his address on national broadcaster ORTM, Cheick Modibo Diarra gave no clear explanation of his resignation.
“Men and women who are worried about the future of our nation, you are hoping for peace. It’s for this reason that I, Cheick Modibo Diarra, am resigning along with my entire government.”
A member of the president’s entourage earlier told AFP news agency that the prime minister had been arrested by about 20 soldiers from the sprawling Kati military base where the 21 March coup was launched.
The source said soldiers had: “smashed in the door of the prime minister’s residence and took him away a bit violently”.
“They said Captain Sanogo sent them to arrest him,” he added.
Security officials said Cheick Modibo Diarra was then driven to Kati.
The military spokesman told Reuters that Cheick Modibo Diarra “wanted to leave the country having incited trouble”.
The prime minister had been about to leave the country for France – the spokesman said. It is not known if he had been trying flee.
Cheick Modibo Diarra, the son-in-law of Moussa Traore, a former Malian coup leader and president, had been leading a government of national unity.
It was formed in August in an attempt to satisfy regional demands for a transition from military rule and to restore stability following the March coup, which led to the entire northern half of the country being occupied by hardline Islamists and Tuareg rebels.
The Islamists have since taken control of northern Mali’s main urban centres, imposing a strict version of Islamic law.
The United Nations warned on Monday that the north of the country is now “one of the potentially most explosive corners of the world”.
The West African regional group Ecowas has agreed to send 3.300 troops to reclaim rebel-held territory. The deployment has been backed by UN Secretary General Ban Ki-moon.
On Monday, the European Union backed plans for a 250-member training mission for around four battalions of the Malian army to fight the militants.
5khp4ASf8LY j0rqmSZIohkImage source: Wikimedia Commons President-elect Donald Trump celebrated his election victory at the Ultimate Fighting…
Millions of voters across the US chose to return Donald Trump to the White House…
Donald Trump declares victory in the US election as he addresses jubilant supporters in Florida.…
Stocks around the world are rising as Donald Trump appears to be on the cusp…
Donald Trump has won Pennsylvania, North Carolina and Georgia and taken a lead over Kamala…
Quincy Jones, the celebrated musician and producer who worked with Michael Jackson, Frank Sinatra, Ray…