Thousands of Americans began moving to Oregon to settle there, and the United States and Britain eventually agreed to divide the region. Many Americans moved to Texas and disputes with the Mexican government led Texans to declare independence. Many Americans called for the nation to expand to the Pacific Ocean. This feeling helped produce a war with Mexico that gained the United States large amounts of land. California's population grew rapidly when gold was discovered there, and Mormons settled in Utah.