ON MAY 6, 1882 , U.S. President Chester Arthur signed into law the Chinese Exclusion Act, the first in a series of discriminatory legal measures aimed at curbing immigration from Asia. Speaking at the time of its passage, California Sen. John F. Miller, a leading proponent of the law, declared that the Chinese were “an inferior sort of men” and that “Chinese civilization in its pure essence appears as a rival to American civilization. It is a product of a people alien in every characteristic to our people, and it has never yet produced and can never evolve any form of government other than an imperial despotism. Free government is incompatible with it, and both cannot exist together.”

There are echoes of Miller’s demagoguery, and of contemporaneous warnings about the supposed “Yellow Peril” posed by East Asians, in the warnings politicians and prominent media figures issue today about allegedly unassimilable immigrants and refugees from Muslim countries.

“The type of rhetoric we’re seeing today about Muslims is both very similar and also slightly different from that which was used to describe Asian immigrants in the past,” said University of Minnesota professor Erika Lee. A specialist in immigration studies, Lee is also author of the 2015 book The Making of Asian America, which chronicles in part the anti-Asian sentiment that new arrivals often had to contend with. “Like Muslims, Asian immigrants were characterized as a slowly creeping civilizational threat to the security and integrity of the United States, but today, with Muslims, there is also the additional allegation that they have a violent intent to overthrow the existing order.”

In recent months, leading Republican presidential candidate Donald Trump has said that all Muslims should be barred from entering the U.S., even for temporary travel, while “establishment” candidates such as Jeb Bush have also made discriminatory proposals, such as forcing refugees from Syria to “prove” that they are in fact Christians before granting them asylum. Louisiana Gov. Bobby Jindal has publicly described the immigration of Muslims to the United States as an “invasion,” while Ben Carson recently accused Muslims attending the State of the Union address of being part of a “civilizational jihad” intended to change the United States from a “Judeo-Christian foundation to a Muslim foundation.”

There has also been the insistence by some, like Florida Sen. Marco Rubio, that the United States is not just engaged in a conflict with an array of terrorist groups but instead a full-blown “clash of civilizations.” Such statements ironically echo the Manichaean narrative of extremist groups like the Islamic State, while further adding to the environment of fear and hostility toward ordinary Muslims in the United States.

The fearmongering around Muslims entering the U.S. resembles not only the earlier panic over East Asian immigrants but around Jewish refugees, as well, as my colleague Lee Fang has written.

Polls have shown that proposed anti-Muslim legal measures enjoy significant popularity in the United States, not only among Republicans but with many Democrats as well. The December passage of bill HR-158, a modification to the Visa Waiver Program that restricts the travel rights of people whose “national origin” is from Iran, Sudan, Iraq, or Syria, has been characterized by some as the first successful attempt to begin to turn these popular sentiments into law. Further measures that would effectively halt refugee applications from Iraq and Syria are also currently under debate.

For many years, Asian-Americans were similarly targeted by politicians and media figures for opprobrium, eventually giving rise to popular support for harsh legislation targeting their community. Following the passage of the 1882 Exclusion Act, further measures like the Asiatic Barred Zone Act of 1917 contributed to even greater restrictions on travel and immigration to the United States from many Asian countries.

Japanese-Americans and Muslims in particular share another touchstone experience: a major attack on U.S. soil to which their community was ascribed collective blame. Following the 1941 bombing of Pearl Harbor and the entry of the United States into World War II, Japanese-Americans were subjected to an unprecedented degree of hostility and scrutiny, particularly by mainstream media figures. “After Pearl Harbor, Japanese-Americans not only saw their travel restricted, but they came to be viewed by many Americans as an advance guard for a hostile power,” Lee said. “There were allegations throughout the media that they represented a fifth column in American society, and that ultimately their allegiance would lie with the Japanese Emperor instead of the United States.”