President Donald Trump signed an executive order Friday that makes major changes to America's immigration system.

The move has subsequently sparked confusion at airports, protests across the country and denunciations from leaders around the world.

A look at what Trump ordered and the reaction:

No entry

Trump's executive order temporarily suspends all immigration for citizens of seven majority Muslim countries for 90 days. They are: Iraq, Syria, Iran, Sudan, Libya, Somalia and Yemen. The order also calls for Homeland Security and State department officials, along with the director of national intelligence, to review what information the government needs to fully vet would-be visitors and come up with a list of countries that don't provide it. The order says the government will give countries 60 days to start providing the information or citizens from those countries will be barred from travelling to the United States.

Green card holders and dual citizens

Homeland Security Secretary John Kelly issued a statement Sunday declaring that, absent information indicating a serious threat to public safety and welfare, residency would be a “dispositive factor in our case-by-case determination.” That means citizens of the seven target countries who hold permanent US residency “green cards” will not be barred from re-entering the US, as officials had previously said.

Officials also clarified Sunday that dual citizens who are nationals of one of the seven target countries and a country that's not on the list will be subject to additional security screenings, but will likely be allowed through.

Refugees

Trump ordered a four-month suspension of America's refugee program. The suspension is intended to provide time to review how refugees are vetted before they are allowed to resettle in the United States.

Trump's order also cuts the number of refugees the United States plans to accept this budget year by more than half, to 50,000 people from around the world.

During the last budget year the US accepted 84,995 refugees, including 12,587 people from Syria. President Barack Obama had set the current refugee limit at 110,000.

The temporary halt to refugee admissions does include exceptions for people claiming religious persecution, so long as their religion is a minority faith in their country.

Syria

Trump's order directs the State Department to stop issuing visas to Syrian nationals and halts the processing of Syrian refugees. That will remain in effect until Trump determines that enough security changes have been made to ensure that would-be terrorists can't exploit weaknesses in the current vetting system.

Extreme vetting

Trump's order did not spell out specifically what additional steps he wants to see the Homeland Security and State departments add to the country's vetting system for refugees. Instead he directed officials to the review the refugee application and approval process to find any other security measures that can be added to prevent people who pose a threat from using the refugee program.

During the Obama administration, vetting for refugees included in-person interviews overseas, where they provided biographical details about themselves, including their families, friendships, social or political activities, employment, phone numbers, email accounts and more. They also provided biometric information, including fingerprints. Syrians were subject to additional, classified controls that administration officials at the time declined to describe, and processing for that group routinely took years to complete.

The response at home

Trump's order sparked an immediate backlash and sowed chaos and outrage, with travellers getting detained at airports, panicked families searching for relatives and protesters marching against the sweeping measure - parts of which were blocked by several federal courts.

Protests were held across the country, including in sight of the Statue of Liberty and Ellis Island in New York City and at international airports where travellers were temporarily detained.

The controversial orders Donald Trump has already issued Show all 9 1 /9 The controversial orders Donald Trump has already issued The controversial orders Donald Trump has already issued Trump and the media White House Press Secretary Sean Spicer takes questions during the daily press briefing Getty Images The controversial orders Donald Trump has already issued Trump and the Trans-Pacific Partnership Union leaders applaud US President Donald Trump for signing an executive order withdrawing the US from the Trans-Pacific Partnership negotiations during a meeting in the Roosevelt Room of the White House in Washington DC. Mr Trump issued a presidential memorandum in January announcing that the US would withdraw from the trade deal Getty The controversial orders Donald Trump has already issued Trump and the Mexico wall A US Border Patrol vehicle sits waiting for illegal immigrants at a fence opening near the US-Mexico border near McAllen, Texas. The number of incoming immigrants has surged ahead of the upcoming Presidential inauguration of Donald Trump, who has pledged to build a wall along the US-Mexico border. A signature campaign promise, Mr Trump outlined his intention to build a border wall on the US-Mexico border days after taking office Getty Images The controversial orders Donald Trump has already issued Trump and abortion US President Donald Trump signs an executive order as Chief of Staff Reince Priebus looks on in the Oval Office of the White House. Mr Trump reinstated a ban on American financial aide being granted to non-governmental organizations that provide abortion counseling, provide abortion referrals, or advocate for abortion access outside of the United States Getty Images The controversial orders Donald Trump has already issued Trump and the Dakota Access pipeline Opponents of the Keystone XL and Dakota Access pipelines hold a rally as they protest US President Donald Trump's executive orders advancing their construction, at Columbus Circle in New York. US President Donald Trump signed executive orders reviving the construction of two controversial oil pipelines, but said the projects would be subject to renegotiation Getty Images The controversial orders Donald Trump has already issued Trump and 'Obamacare' Nancy Pelosi who is the minority leader of the House of Representatives speaks beside House Democrats at an event to protect the Affordable Care Act in Los Angeles, California. US President Donald Trump's effort to make good on his campaign promise to repeal and replace the healthcare law failed when Republicans failed to get enough votes. Mr Trump has promised to revisit the matter Getty Images The controversial orders Donald Trump has already issued Donald Trump and 'sanctuary cities' US President Donald Trump signed an executive order in January threatening to pull funding for so-called "sanctuary cities" if they do not comply with federal immigration law AP The controversial orders Donald Trump has already issued Trump and the travel ban US President Donald Trump has attempted twice to restrict travel into the United States from several predominantly Muslim countries. The first attempt, in February, was met with swift opposition from protesters who flocked to airports around the country. That travel ban was later blocked by the Ninth Circuit Court of Appeals. The second ban was blocked by a federal judge a day before it was scheduled to be implemented in mid-March SANDY HUFFAKER/AFP/Getty Images The controversial orders Donald Trump has already issued Trump and climate change US President Donald Trump sought to dismantle several of his predecessor's actions on climate change in March. His order instructed the Environmental Protection Agency to reevaluate the Clean Power Plan, which would cap power plant emissions Shannon Stapleton/Reuters

The response abroad

Leaders of Britain and Germany joined other American allies in criticising Trump's entry ban, voicing anger and dismay, even as some far-right politicians expressed hope the move would inspire similar measures in Europe. The far-right National Democratic Party in Germany, for instance, celebrated “the massive restriction on the entry of pseudo-refugees and Muslims to the USA.”

A petition on the British Parliament's website, meanwhile, attracted hundreds of thousands of signatures backing its call for Trump, who has been invited to meet Queen Elizabeth II, to be barred on the basis of misogyny and vulgarity.