 In 1879, he transferred to the Cape Mounted Riflemen, and commanded operations in the Morosi campaign that year.In 1880–1881, he commanded operations in the Basutoland Gun War in Basutoland.Col Bayly served as Commandant-General of the Cape Colonial Forces from 1882 until he retired in 1892.