The first significant Chinese immigration to North America began with the California Gold Rush of 1848–1855 and it continued with subsequent large labor projects, such as the building of the First Transcontinental Railroad. During the early stages of the gold rush, when surface gold was plentiful, the Chinese were tolerated by white people, if not well received. However, as gold became harder to find and competition increased, animosity toward the Chinese and other foreigners increased. After being forcibly driven from mining by a mixture of state legislators and other miners (the Foreign Miner's Tax), the immigrant Chinese began to settle in enclaves in cities, mainly San Francisco, and took up low-wage labor, such as restaurant and laundry work. With the post-Civil War economy in decline by the 1870s, anti-Chinese animosity became politicized by labor leader Denis Kearney and his Workingman's Party as well as by California governor John Bigler, both of whom blamed Chinese "coolies" for depressed wage levels. Public opinion and law in California began to demonize Chinese workers and immigrants in any role, with the later half of the 1800s seeing a series of ever more restrictive laws being placed on Chinese labor, behavior and even living conditions. While many of these legislative efforts were quickly overturned by the State Supreme Court, many more anti-Chinese laws continued to be passed in both California and nationally.