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.