In 1897 and 1898 Ravenshaw was again active, conducting operations against Malakand and then participating in the Tirah Campaign where he was with the army which forced the Khyber Pass against the Afridis. In 1899 he was transferred with his regiment to South Africa to fight against the Boers at the outbreak of the Second Boer War. As Adjutant of the regiment, Ravenshaw fought in the relief of Ladysmith and numerous smaller actions for three years. On his return home, Ravenshaw was given the position of Adjutant at Sandhurst, a post he held until 1907.