A military council has taken control of Sudan and arrested longtime President Omar al-Bashir, the country's military said Thursday. The move comes after opposition protesters recently gained new momentum in demanding al-Bashir leave office.

Sudan's defense minister, Awad Mohamed Ahmed Ibn Auf, said the "regime" had been removed and its head arrested, as he announced the coup in a televised statement.

The minister said a transitional military council will rule the country for two years.

Protesters have been calling for al-Bashir's ouster for months. Thousands swelled the capital Khartoum's streets as the military promised to make an important announcement earlier Thursday.

Protests began in December over the price of bread after the government ended subsidies. But they spread to political concerns and protesters demanded al-Bashir's ouster. Since Saturday, tens of thousands have maintained a protest vigil near the military headquarters in the capital Khartoum.

The armed forces have been deployed around the capital's main roads and bridges, the BBC reports, and the city's main airport is closed.

The Sudanese Professionals Association, the civil society group that has led protests since December, had called on residents to mobilize on Thursday for a sit-in. The group tweeted that the military leadership must "hand over power to the people."

Sudan's current crisis "cannot be addressed through another military coup," the group said. The SPA called for protests to continue until power is handed over to a civil transitional government.

"We will not accept Bashir's aides as part of the new situation," protester Mohamed Adam told Reuters. "Those people have killed protesters."

Media reports say the current swell of protesters is largely peaceful. The SPA said it advocated a peaceful "approach to revolution and change."

Sudanese security forces killed at least 14 people on Tuesday, NPR previously reported. But according to the BBC, the army stepped in to protect protesters from at least two attacks by forces loyal to al-Bashir.

Now all eyes are on the Sudanese military, which has a long history of coups in the country.

Sudan gained independence from the U.K. and Egypt in 1956. Just two years later, Chief of Staff Lt. Gen. Ibrahim Abboud took power in a bloodless coup.

Riots and strikes in 1964 led to the military giving up control.

But Col. Gaafar Muhammad Nimeiri led a second military coup in 1969, according to the U.S. State Department's history. Nimeiri became prime minister and the military banned political parties and dissolved parliament. He survived multiple coup attempts before succumbing to another military coup in 1985.

Gen. Abdelrahman Swar al-Dahab led the military overthrow of Nimeiri in that coup. This time the military handed over power to a civilian government of Prime Minister Sadiq al-Mahdi after elections in 1986.

Al-Mahdi only lasted three years. Omar al-Bashir, with the support of military officers and an Islamist political party, took power as leader of a junta in his own coup on June 30, 1989.

Al-Bashir had been in power almost 30 years. The International Criminal Court in the Hague issued warrants for al-Bashir's arrest in 2009 and 2010 for genocide and crimes against humanity in Sudan's Darfur region.

But those arrest warrants have not been carried out, with al-Bashir traveling to South Africa in 2015 and Chad in 2010 and returning home.

Copyright 2019 NPR. To see more, visit https://www.npr.org.