Iran’s President Hassan Rouhani has criticized Donald Trump’s divisive policies, saying today is not the age of building walls between countries.

“Today is not the time of wall-raising between nations. Have they forgotten that the Berlin Wall collapsed years ago?” Rouhani said, referring to US government’s plan to build a wall on the Mexican border.

“[Even] if there is a wall between nations, it has to be removed,” he said.

The news comes a day after Trump signed an executive order temporarily banning thousands from entering the United States. The ban targets citizens from the Muslim majority countries of Iran, Iraq, Libya, Somalia, Sudan, Syria and Yemen.

“Today’s world is not a world where one can create distances between the nations and peoples of different territories. Today is a day of neighborhood. We have become neighbors in cultural, scientific, and civilizational terms, and also, the world of communications and communications technology have shrunk distances,” Rouhani said.

“No one can fight globalization today,” he added.

Following Trump’s controversial decision, one of Iran’s most popular actresses, Taraneh Alidoosti, announced on Twitter that she was canceling her trip to the Academy Awards ceremony in protest at President Donald Trump's "racist" ban on immigrants from Muslim-majority nations.

"Trump's visa ban for Iranians is racist. Whether this will include a cultural event or not, I won't attend the #AcademyAwards 2017 in protest,” she tweeted on Thursday.