Under Barech at the 1761 Third Battle of Panipat, Rohilkhand blocked the expansion of the Maratha Empire into northern India. In 1772 it was invaded by the Marathas, repulsing the invasion with the aid of the Nawab of Awadh. After the war, Nawab Shuja-ud-Daula demanded payment for the nawabs' help from Barech. When his demand was refused, the nawab joined the British (under Governor Warren Hastings and his Commander-in-Chief, Alexander Champion) to invade Rohilkhand. The combined forces of Daula and the Company defeated Barech (who was killed in battle at Miranpur Katra, ending Rohilla rule) in 1774. Rohilkhand was handed over to Daula, and from 1774 to 1800 the province was ruled by the Nawab of Awadh. By 1801, subsidies due under the treaties to support a British force had fallen into arrears. To pay the debt, Nawab Saadat Ali Khan surrendered Rohilkhand to the East India Company in a treaty signed on 10 November 1801.