The Maratha Empire controlled much of central and northern India and had fallen to the British in 1818 giving the British control over almost all of the Indian subcontinent. The Maharaja of Gwalior had died and a young child was appointed as the Maharaja with British support. However, Marathas in Gwalior saw the failed British campaign in Afghanistan as an opportunity to regain independence and removed the young Maharaja. Lord Ellenborough, foreseeing the possibility of the Marathas in Gwalior attempting independence had formed the "Army of Exercise" near Agra. After attempts to negotiate failed, the British advanced in a two-pronged attack. The British, under the command of Gen. Sir Hugh Gough clashed with Maratha forces, under the command of Maharaja Scindia, in two battles on the same day; 29 December 1843.