Idaho Territory
In 1864, with the formation of the Montana Territory, the southeastern section of the Idaho Territory (most of modern Wyoming) became briefly part of Dakota Territory once again, although a strip of land along the western border of what would become Wyoming remained part of the Idaho Territory.