ARLINGTON, VA - JANUARY 27: U.S. President Donald Trump signs executive orders in the Hall of Heroes at the Department of Defense on January 27, 2017 in Arlington, Virginia. Trump signed two orders calling for the "great rebuilding" of the nation's military and the "extreme vetting" of visa seekers from terror-plagued countries. (Photo by Olivier Douliery-Pool/Getty Images)
Pool/Getty Images North America/Getty Images
ARLINGTON, VA - JANUARY 27: U.S. President Donald Trump signs executive orders in the Hall of Heroes at the Department of Defense on January 27, 2017 in Arlington, Virginia. Trump signed two orders calling for the "great rebuilding" of the nation's military and the "extreme vetting" of visa seekers from terror-plagued countries. (Photo by Olivier Douliery-Pool/Getty Images)
Now playing
02:16
Iran says it will ban US citizens
muslim ban jake tapper fact check orig nws_00002104.jpg
muslim ban jake tapper fact check orig nws_00002104.jpg
Now playing
03:45
Is travel ban a 'total and complete' Muslim ban?
CNN/Madeleine Stix
Now playing
01:09
Farhana Khera: She's fighting Trump's travel ban
US President Donald Trump steps off Air Force One upon arrival at Andrews Air Force Base in Maryland on December 2, 2017. 
Trump is returning to Washington, DC after attending fundraisers in New York, New York.
MANDEL NGAN/AFP/Getty Images
US President Donald Trump steps off Air Force One upon arrival at Andrews Air Force Base in Maryland on December 2, 2017. Trump is returning to Washington, DC after attending fundraisers in New York, New York.
Now playing
01:48
Official: Trump's rhetoric creating problems
WASHINGTON, DC - FEBRUARY 16:  U.S. President Donald Trump signs H.J. Res. 38, disapproving the rule submitted by the US Department of the Interior known as the Stream Protection Rule in the Roosevelt Room of the White House on February 16, 2017 in Washington, DC.  The Department of Interior's Stream Protection Rule, which was signed during the final month of the Obama administration, "addresses the impacts of surface coal mining operations on surface water, groundwater, and the productivity of mining operation sites," according to the Congress.gov summary of the resolution. (Photo by Ron Sachs-Pool/Getty Images)
Pool/Getty Images North America/Getty Images
WASHINGTON, DC - FEBRUARY 16: U.S. President Donald Trump signs H.J. Res. 38, disapproving the rule submitted by the US Department of the Interior known as the Stream Protection Rule in the Roosevelt Room of the White House on February 16, 2017 in Washington, DC. The Department of Interior's Stream Protection Rule, which was signed during the final month of the Obama administration, "addresses the impacts of surface coal mining operations on surface water, groundwater, and the productivity of mining operation sites," according to the Congress.gov summary of the resolution. (Photo by Ron Sachs-Pool/Getty Images)
Now playing
01:23
Trump's words on Muslims come back to haunt him
Muslim Americans Tell Trump: Thanks, but no thanks_00003824.jpg
CNN
Muslim Americans Tell Trump: Thanks, but no thanks_00003824.jpg
Now playing
04:42
Muslim American: Trump using iftar dinner as a prop
Trump drive them out terrorists sot_00000000.jpg
Host TV
Trump drive them out terrorists sot_00000000.jpg
Now playing
01:00
Trump to Muslim world: Drive out terrorists
Allie Schmitz/CNNMoney
Now playing
09:31
Are Trump's reckless tweets actually a danger?
Senior advisor to U.S. President Donald Trump Stephen Miller watches as U.S. Attorney General Jeff Sessions delivers remarks during the daily White House press briefing March 27, 2017 in Washington, DC.
Win McNamee/Getty Images
Senior advisor to U.S. President Donald Trump Stephen Miller watches as U.S. Attorney General Jeff Sessions delivers remarks during the daily White House press briefing March 27, 2017 in Washington, DC.
Now playing
01:43
Travel ban author writes Trump speech on Islam
Judge Michael Hawkins
CNN
Judge Michael Hawkins
Now playing
02:31
Judge: Did Trump ever disavow Muslim ban?
In this Dec. 2, 2015, photo, Republican presidential candidate Donald Trump speaks during a campaign rally at the Prince William County Fair Ground in Manassas, Va. Trump tapped a man to be a senior business adviser to his real-estate empire even after the mans past involvement in a major mafia-linked stock fraud scheme became public. Felix Sater pleaded guilty to one count of racketeering in 1998. His conviction remained secret for nearly a decade as he worked as a government informant and an executive at the Bayrock Group, a real estate firm that partnered with Trump.  (AP Photo/Cliff Owen)
Cliff Owen/AP/File
In this Dec. 2, 2015, photo, Republican presidential candidate Donald Trump speaks during a campaign rally at the Prince William County Fair Ground in Manassas, Va. Trump tapped a man to be a senior business adviser to his real-estate empire even after the mans past involvement in a major mafia-linked stock fraud scheme became public. Felix Sater pleaded guilty to one count of racketeering in 1998. His conviction remained secret for nearly a decade as he worked as a government informant and an executive at the Bayrock Group, a real estate firm that partnered with Trump. (AP Photo/Cliff Owen)
Now playing
01:24
The things Donald Trump has said about Muslims
Now playing
01:12
Trump's refugee ban and the war on ISIS
Republican presidential candidate Donald J. Trump speaks at the Saint Andelm College New Hampshire Institute of Politics in Manchester, New Hampshire June 13, 2016.
TIMOTHY A. CLARY/AFP/AFP/Getty Images
Republican presidential candidate Donald J. Trump speaks at the Saint Andelm College New Hampshire Institute of Politics in Manchester, New Hampshire June 13, 2016.
Now playing
01:24
Watch Donald Trump evolve on banning Muslim immigration
CNN
Now playing
03:11
Reality check: Truth about refugees, terrorism
Protesters assemble at John F. Kennedy International Airport in New York, Saturday, Jan. 28, 2017, after earlier in the day two Iraqi refugees were detained while trying to enter the country. On Friday, Jan. 27, President Donald Trump signed an executive order suspending all immigration from countries with terrorism concerns for 90 days. Countries included in the ban are Iraq, Syria, Iran, Sudan, Libya, Somalia and Yemen, which are all Muslim-majority nations. (AP Photo/Craig Ruttle)
Craig Ruttle/AP
Protesters assemble at John F. Kennedy International Airport in New York, Saturday, Jan. 28, 2017, after earlier in the day two Iraqi refugees were detained while trying to enter the country. On Friday, Jan. 27, President Donald Trump signed an executive order suspending all immigration from countries with terrorism concerns for 90 days. Countries included in the ban are Iraq, Syria, Iran, Sudan, Libya, Somalia and Yemen, which are all Muslim-majority nations. (AP Photo/Craig Ruttle)
Now playing
01:33
Protesters swarm airports nationwide
Jeremy Moorhead
Now playing
03:01
Being Muslim and American in the year of Donald Trump

Story highlights

Iran calls Trump's order "an obvious insult to the Islamic world"

Iran is one of seven Muslim-majority nations targeted in US order

CNN —  

Iran is carefully studying US President Donald Trump’s executive order limiting immigration from seven Muslim-majority countries and will take legal, political and reciprocal measures accordingly, Iran’s Foreign Affairs Ministry announced Saturday.

Iranian Foreign Minister Javad Zarif didn’t specify what those measures would be, but he affirmed in a tweet that anyone with a valid visa would be welcomed.

“Unlike the U.S., our decision is not retroactive. All with valid Iranian visa will be gladly welcomed. #MuslimBan 7/7” he wrote.

Iran is among seven countries whose nationals are barred from entering the United States for 90 days under Trump’s order, signed Friday.

Earlier, CNN and some other media organizations reported that Iran was banning Americans from entering the country. The foreign affairs ministry says it is considering what action to take.

Read full text of Trump’s executive order

“The US decision to restrict travel for Muslims to the US, even if for a temporary period of three months, is an obvious insult to the Islamic world and in particular to the great nation of Iran,” the Foreign Affairs Ministry statement said.

“Despite the claims of combating terrorism and keeping American people safe, it will be recorded in history as a big gift to extremists and their supporters.”

Iran will take “proportionate legal, consular and political action and … will take reciprocal measures in order to safeguard the rights of its citizens until the time of the removal of the insulting restrictions of the government of the United States against Iranian nationals.”

The other six countries listed in Trump’s executive order are Iraq, Syria, Libya, Somalia, Sudan and Yemen. Other nations may be added. The order exempts diplomats and members of international organizations from the ban.

Trump's immigration order: Which countries are affected?

  • Iran
  • Iraq
  • Syria
  • Sudan
  • Libya
  • Yemen
  • Somalia

The executive order also stops the admission of all refugees to the United States for four months.

No formal relations

The United States and Iran have not had formal diplomatic relations since April 1980, when President Jimmy Carter cut ties during the Iran hostage crisis. American interests in Iran are represented by the Swiss Embassy in Tehran.

The US State Department has warned Americans for years about the risks of traveling to Iran.

The most recent travel warning, updated on the department’s website in August 2016, says Iran unjustly imprisons US citizens, especially Iranian-Americans, on charges of espionage and being a threat to national security.

Another source of friction between the United States and Iran is the future of the nuclear deal negotiated during former President Barack Obama’s administration.

Trump said during the campaign that he would renegotiate the deal, but Iranian President Hassan Rouhani has said that won’t happen. “Do you think we and our nation will let him do that?” Rouhani said.

Clarification: An earlier version of this article suggested that Americans would be banned from entering Iran. The Foreign Ministry statement says Iran has not yet decided on specific actions, but that it would consider legal, political and retaliatory measures against President Trump’s executive order.

CNN’s Artemis Moshtaghian contributed to this report.