The area was transferred from Spanish authority to Mexican rule in 1822 and ceded to the United States in 1848 at the end of the Mexican–American War. California was granted statehood in 1850. Americanization further expanded in the area after completion of the transcontinental railroad in 1869 and its connection to Los Angeles in 1875. By then, Abel Stearns had acquired Rancho Los Coyotes in consideration for loans made to Pio and Andrés Pico. In 1885, James A. Whitaker, a wholesale grocer from Chicago, purchased of this land from Stearns. In 1887, Whitaker founded the City of Buena Park in conjunction with the railway development of what we now know as Orange County.