During the Second Afghan War in 1878 his influence over the tribesmen was of the utmost importance, since it enabled him to keep intact the line of communications with Kandahar, and to control the tribes after the British disaster at Maiwand. For these services he was made K.C.S.I. in 1879. In 1889 he occupied the Zhob valley, a strategic advantage which opened the Gomal Pass through the Waziri country to caravan traffic. Sandeman's system was not so well suited to the Pashtun as to his Baluch neighbours. But in Balochistan he was a pioneer, a pacificator and a successful administrator, who converted the region from a state of complete anarchy into a province as orderly as any in British India.