On 8 January 1877, Companies E, and F of the 22d Infantry fought at the Battle of Wolf Mountain on the Tongue River in Montana Territory, and on 7 May 1877, Companies E, F, and G were present at the Battle of Little Muddy Creek. In 1888 the 22d Infantry's regiment headquarters was moved to Fort Keogh, Montana, and would remain there until 1896. In December 1890, and January 1891, the regiment participated in repressing the Ghost Dance on the Sioux Reservation in South Dakota, and in 1891, and 1892 patrolled throughout Montana.