After Smith's death, there was a controversy over who should replace Smith. Brigham Young led most of the Latter-day Saints to Utah in 1847. When Utah became a territory in 1850, it was somewhat of a theocracy. Later in the 1850s, there was conflict between the Latter-day Saints and the U.S. government over control of the territory. This was called the Utah War. The Mountain Meadows massacre was part of the Utah War. In the late 19th and early 20th centuries, Latter-day Saints settled the "Mormon Corridor" in Utah and surrounding states in the Western United States. Some of the places they settled were Mesa, Arizona; San Bernardino, California; Las Vegas, Nevada; and Cardston, Alberta. By 1890, the Church of Jesus Christ of Latter-Day Saints had built temples in three Utah cities.