This story has been updated.

Tunisian President Kais Saied dismissed the country’s prime minister and froze parliament for 30 days on Sunday, posing a major test to the young democracy and escalating a political crisis that has built for months. Opponents condemned the move as an attempted coup.

Saied announced that he was firing Prime Minister Hichem Mechichi and that he and a new prime minister would take up executive authority. Under Tunisia’s 2014 constitution, executive power is shared by the president, prime minister and the parliament.

Saied also suspended lawmakers’ parliamentary immunity.

“We have taken these decisions … until social peace returns to Tunisia and until we save the state,” he said in a televised speech after an emergency meeting with security leaders.

The moves came on Tunisia’s Republic Day, traditionally a day of celebration and protest across the North African country. This year, amid a floundering economy, a devastating coronavirus surge and widespread anger at the government, it was marked by displays of public rage.

Thousands of Tunisians across the country demonstrated Sunday, reiterating calls for the dissolution of parliament that have resounded at street protests in recent months, reflecting the deep dissatisfaction of many in the Arab Spring’s only lasting democracy. Scuffles between police and protesters broke out at several points. Police in Tunis, the capital, fired tear gas and made several arrests.

By Monday morning, Tunisian troops had been deployed to the government palace in Tunis and also surrounded parliament, where they blocked Rachid Ghannouchi, head of the moderate Islamist party Ennahda and speaker of parliament, from entry. Ghannouchi has accused Saied of carrying out “a coup attempt.”

Saied had still not named a new prime minister. Rival crowds also gathered outside of parliament, and Al Jazeera tweeted that security forces had stormed its office in Tunis.

Videos on social media Sunday appeared to show some demonstrators vandalizing local party offices of Ennahda. The moderate Islamist party has been the most significant player in Tunisian politics since the country’s 2011 revolution. It holds a plurality of seats in parliament, but it is highly unpopular among many segments of the population.

Tunisians, defying a coronavirus curfew, cheered, ululated, lit flares and waved flags on the streets of cities across Tunisia following Saied’s announcement. Videos on social media showed an army tank driving along the capital’s central artery to applause from the crowd.

Saied stepped out of a car and waved to supporters on Habib Bourguiba Avenue, the main thoroughfare of Tunis, state television broadcasts showed. Wearing a mask and flanked by guards, he walked along the congested street, which was the epicenter of the 2011 revolution.

Saied has argued that his actions are in line with a constitutional article that gives the president broad powers under exceptional circumstances. He said Sunday that he was “not suspending the constitution” and that these would be “temporary measures.”

“I warn any who think of resorting to weapons … and whoever shoots a bullet, the armed forces will respond with bullets,” he said in his remarks, Al Jazeera reported.

On Sunday, Ghannouchi called on “the youth of the revolution,” civil and political society, the army, police and others to “abstain from the participation in the confiscation of Tunisia’s achievements.”

Parliament “cannot be suspended” and remains active, Ghannouchi said in a statement to The Washington Post, describing the president’s announcements as “invalid” and unconstitutional.

“We consider the Assembly to be in permanent session, the government to be in place and all our democratic institutions to be unaffected by these unconstitutional measures,” he added. “We call on President Saied to stop this attempted coup and ask all our friends inside and outside to support the people of Tunisia in resisting the forces of dictatorship and tyranny.”

He and other party leaders planted themselves in front of the closed gate of parliament early Monday in Tunis, as security officers prevented them from entering the premises.

It’s unclear what could happen next. Constitutional disputes are supposed to be adjudicated by a constitutional court, but seven years after the constitution was ratified, political squabbling over the court’s composition has prevented its establishment.

Sharan Grewal, a professor at William & Mary whose research focuses on democratization, religion and civil-military relations in the Arab world, called the developments “probably the most serious crisis since the protests of summer 2013.” Tensions that summer nearly overturned Tunisia’s democracy.

The constitution is clear that parliament must remain in continuous session, Grewal wrote in a text message. He speculated that Ennahda could try to convene a meeting of the legislature to test the loyalties of security forces. The position of the powerful national labor union — which helped broker the compromise that resolved Tunisia’s last major political crisis — will also be critical in shaping how events unfold.

Sunday’s developments follow months of political infighting among Saied, Mechichi — whom Saied picked for prime minister last summer and later soured on — and the parliamentary coalition led by Ennahda, which supported Mechichi’s government.

Saied has refused since the winter to swear in 11 new ministers, and Ghannouchi and others accused him of overstepping his constitutional authority. Saied has also made statements in recent months aimed at bolstering the power of the presidency, setting off alarm bells among some politicians and observers.

The president last week told the army to take over the national coronavirus pandemic response, as the country battles one of Africa’s worst outbreaks. Soaring infection and death rates had compounded public anger with the administration.

Popular sentiment has appeared to be largely on the president’s side. As criticism of the government mounted in recent months, Saied, a law professor and political independent who won the presidency in a landslide in 2019, has maintained strong support in public opinion polls.

“Kais Saied is still the most popular figure in Tunisia, and beyond his base, his moves likely also appeal to Tunisians who loathe Ennahda and other political parties, as well as those who seek a stronger presidency,” Grewal said.

An early reaction to developments in Tunisia came Monday from the Islamist-led government of President Recep Tayyip Erdogan in Turkey, which has supported Ennahda and other movements associated with political Islam throughout the Middle East.

“We reject the suspension of the democratic process and disregard of the democratic will of the people in friendly and brotherly Tunisia,” Ibrahim Kalin, an adviser to Erdogan, wrote Monday on Twitter. “We condemn initiatives that lack constitutional legitimacy and popular support,” he added.

Rachel Pannett in Sydney; Kareem Fahim in Leros, Greece; and Siobhán O’Grady in Cairo contributed to this report.

Read more: