Harry Smith was appointed Adjutant-General in India in 1840, where he took part in the Gwalior campaign of 1843, for which he was appointed a Knight Commander of the Order of the Bath (KCB) and the First Anglo-Sikh War of 1845-46. He was in command of a division under Sir Hugh Gough at the battles of Mudki and Ferozeshah, where he conspicuously distinguished himself, but was insufficiently supported by the commander-in-chief. After the second of these actions Sir Harry Smith was appointed to an independent command, and on 28 January 1846 he inflicted a crushing defeat on the Sikhs at Aliwal on the Sutlej.