Bannack lost its status as territorial capital, and many of its residents, when gold was discovered at Virginia City in 1865.