To address these rising social tensions, from the 1850s through the 1870s the California state government passed a series of measures aimed at Chinese residents, ranging from requiring special licenses for Chinese businesses or workers to preventing naturalization. Because anti-Chinese discrimination and efforts to stop Chinese immigration violated the 1868 Burlingame-Seward Treaty with China, the federal government was able to negate much of this legislation.
In 1879, advocates of immigration restriction succeeded in introducing and passing legislation in Congress to limit the number of Chinese arriving to fifteen per ship or vessel. Republican President Rutherford B. Hayes vetoed the bill because it violated U.S. treaty agreements with China. Nevertheless, it was still an important victory for advocates of exclusion. Democrats, led by supporters in the West, advocated for all-out exclusion of Chinese immigrants. Although Republicans were largely sympathetic to western concerns, they were committed to a platform of free immigration. In order to placate the western states without offending China, President Hayes sought a revision of the Burlingame-Seward Treaty in which China agreed to limit immigration to the United States.
For American presidents and Congressmen addressing the question of Chinese exclusion, the challenge was to balance domestic attitudes and politics, which dictated an anti-Chinese policy, while maintaining good diplomatic relations with China, where exclusion would be seen as an affront and a violation of treaty promises. The domestic factors ultimately trumped international concerns. In 1888, Congress took exclusion even further and passed the Scott Act, which made reentry to the United States after a visit to China impossible, even for long-term legal residents. The Chinese Government considered this act a direct insult, but was unable to prevent its passage. In 1892, Congress voted to renew exclusion for ten years in the Geary Act, and in 1902, the prohibition was expanded to cover Hawaii and the Philippines, all over strong objections from the Chinese Government and people. Congress later extended the Exclusion Act indefinitely.
In China, merchants responded to the humiliation of the exclusion acts by organizing an anti-American boycott in 1905. Though the movement was not sanctioned by the Chinese government, it received unofficial support in the early months. President Theodore Roosevelt recognized the boycott as a direct response to unfair American treatment of Chinese immigrants, but with American prestige at stake, he called for the Chinese government to suppress it. After five difficult months, Chinese merchants lost the impetus for the movement, and the boycott ended quietly.
The Chinese Exclusion Acts were not repealed until 1943, and then only in the interests of aiding the morale of a wartime ally during World War II. With relations already complicated by the Opium Wars and the Treaties of Wangxia and Tianjian>, the increasingly harsh restrictions on Chinese immigration, combined with the rising discrimination against Chinese living in the United States in the 1870s-early 1900s, placed additional strain on the diplomatic relationship between the United States and China.