Idaho Territory
Montana Territory was split from Idaho Territory, which also had some land transferred to Dakota Territory. Montana Territory corresponded to present-day Montana, Idaho Territory consisted of Idaho and western Wyoming, and Dakota Territory included both North and South Dakota, and most of Wyoming.