Brigham Young assured the demise of Corinne when he and the Mormon people built the narrow-gauge Utah Northern Railroad from Ogden to Franklin, Idaho. Although construction of the line beyond that point ceased for four years as a result of the Panic of 1873, in the autumn of 1877 the Union Pacific bought the spur line and began pushing it northward through Idaho. The tracks reached Marsh Valley and cut the Montana Trail at that place, thereby supplanting wagon traffic from Corinne with rail transport from Ogden. The Gentile merchants soon abandoned Corinne in favor of Ogden or the terminus of the rail line, while Mormon farmers moved in to buy the land around Corinne and make it into another Mormon settlement.