It started with the Chinese Exclusion Act of 1882, but 10 years later it then came to the US opening Ellis Island in which immigrates had spent time before being able to actually enter the US.
Saying to be heard hope this is right
Mongols affected Ancient China by attacking most of China's north. In the Qin Dynasty, Qin Shi Huangdi joined up smaller walls in the north which became the Great Wall of China