After serving as commander-in-chief of the British forces in China during the First Opium War, he became Commander-in-Chief, India and led the British forces in action against the Marathas defeating them decisively at the conclusion of the Gwalior Campaign and then commanded the troops that defeated the Sikhs during both the First Anglo-Sikh War and the Second Anglo-Sikh War.