Immediately thereafter, the 4th Cavalry was transferred to Arizona Territory, where Mackenzie was to assume full command of all military forces in the department and subdue the hostile Apaches. Within less than a month, the Apaches had surrendered or fled to Mexico, and on 30 October, Mackenzie and the 4th Cavalry were transferred to the new District of New Mexico. By 1 November 1882, when W. B. Royall replaced Mackenzie as colonel, the 4th Cavalry had forced the White Mountain Apaches, Jicarilla Apaches, Navajos, and Mescaleros to remain peacefully on their respective reservations.