In the third battle of Panipat, the Marthas were defeated by the