Raines commanded the 95th regiment throughout the Indian Mutiny campaign between 1857 and 1859. He was present at the assault and capture of Rowa on 6 January 1858, when he received the high commendation of the John Elphinstone, 13th Lord Elphinstone and the commander-in-chief for 'gallantry displayed and ably conducting these operations.' He led the left wing of the 95th regiment at the siege and capture of Awah on 24 January, and at the siege and capture of Kotah on 30 March was in command of the third assaulting column. At the battle of Kotah-ke-Serai he was mentioned in dispatches by Sir Hugh Rose 'for good service.' He was especially active during the capture of Gwalior on 19 June, when he was wounded by a musket ball in the left arm, after taking by assault two 18-pounders and helping to turn the captured guns on the enemy. For gallantry in minor engagements he was four times mentioned in dispatches. The 95th regiment, while under his command in Central India, marched 3000 miles. He received the medal with clasp, was promoted to lieutenant-colonel on 17 November 1857, received the brevet of colonel on 20 July 1858, and was appointed a Companion of the Order of the Bath on 21 March 1859. Raines next saw active service at Aden, where he commanded an expedition into the interior of Arabia in 1865. Raines was promoted to major-general on 6 March 1868, to lieutenant-general on 1 October 1877, and general (retired) on 1 July 1881, and was nominated colonel-in-chief of the Buffs in 1882. In 1893, he was advanced to Knight Commander of the Order of the Bath, and in 1906 was advanced to Knight Grand Cross of the Order of the Bath.