This post has been updated.

With Congress resisting President Trump’s plans for a border wall, he has turned to a move meant to circumvent Congress entirely: declaring a national emergency.

“I’m going to be signing a national emergency,” Trump said during remarks in the Rose Garden on Friday morning. “We’re talking about an invasion of our country with drugs, with human traffickers, with all types of criminals and gangs.”

Trump has repeatedly threatened to go to new extremes to fulfill his campaign promise of building a wall along the U.S. border with Mexico.

“I can do it if I want — absolutely,” he said last month, claiming he didn’t need congressional approval to build a wall. “We can call a national emergency because of the security of our country. We can call a national emergency and build it very quickly.”

But as The Washington Post has reported, legal experts see the power of Trump’s emergency declaration as limited.

Globally, leaders often invoke emergency powers to handle natural disasters and other crises that require immediate attention. U.S. presidents have regularly declared national emergencies, including after the attacks of Sept. 11, 2001. Such declarations are common abroad, as well. In recent years, foreign leaders also have found ways to use states of emergency to broaden their powers or clamp down on dissent — occasionally for years at a time. Here are a few examples.

Turkey, post-coup attempt

After a coup attempt in July 2016 that left 250 people dead, Turkey declared a state of emergency, vastly expanding President Recep Tayyip Erdogan’s powers. Then the state of emergency was extended again and again.

Over two years, as the state of emergency remained in place, about 160,000 people were detained, including journalists and academics. The U.N. human rights office said last year that almost the same number of civil servants were sacked in that period. Some aspects of Ankara’s crackdown during the state of emergency could be called “collective punishment,” the United Nations said, noting that detentions under the emergency powers led to the torture of some of those who were detained.

Turkey’s Foreign Ministry claimed that the United Nations made “unfounded allegations matching up perfectly with the propaganda efforts of terrorist organizations.”

France, post-terrorist attacks

France implemented a state of emergency overnight in 2015, after terrorist attacks shocked the nation and left 130 people dead. The broad new powers gave French authorities the ability to expand their counterterrorism efforts. Amnesty International said in a 2016 report that under the expanded powers, authorities could “search houses, businesses and places of worship” without judicial authorization. The rights group noted that France was “certainly confronted with an exceptional and unprecedented situation” after the violent and deadly attacks that prompted the emergency measures to begin with. But the watchdog group said that the large number of searches and low number of criminal investigations raised “serious questions about the extent to which they were necessary and proportionate.”

The group said it “interviewed many Muslims who believed that the measures against them were motivated by their religious beliefs and practice.”

French authorities repeatedly justified the extension of the emergency powers as a reasonable means by which to foil attacks on French soil.

Venezuela, economic and political crisis

In 2016, Venezuelan President Nicolás Maduro declared a state of emergency, claiming that the United States and actors within Venezuela were plotting to overthrow him. The opposition claimed that the move was unconstitutional, but the country’s Supreme Court upheld Maduro’s decision.

The state of emergency was extended multiple times, as Venezuela sank further into an economic and humanitarian crisis that prompted millions of Venezuelans to flee the country. Maduro will be inaugurated for another term on Thursday, and 13 nations issued a statement last week announcing that they will not recognize his new term as legitimate.

Egypt, terrorism

In 2017, after about 45 people were killed in church bombings in Egypt, President Abdel Fatah al-Sissi declared a state of emergency there — and it has been extended for three-month periods at a time ever since.

Human Rights Watch has warned that there has been “near-absolute impunity for abuses by security forces” in Egypt. The watchdog group reported that there have been disappearances, torture, extrajudicial killings and seizures of assets without due process.

“The 1958 Emergency Law gives unchecked powers to security forces to arrest and detain and allows the government to impose media censorship and order forced evictions,” the group said.

And in October, the Egyptian parliament voted to extend the state of emergency yet again.

Read more:

‘I can do it if I want’: Trump threatens to invoke emergency powers to build border wall

Post-coup crackdown fuels U.S. concern about Turkish democracy

A Venezuelan doctor leaves his home to rebuild his life from the bottom up