 The decisive event was the opening of the transcontinental Central Pacific railroad in 1869; six days by train brought a traveller from Chicago to San Francisco, compared to six months by ship.Thousands of Chinese men arrived from Asia both to build the railroad and to prospect for gold.As resentment against foreigners grew, they were expelled from the mine fields.