In the Third Battle of Panipat (1761), Ahmad Shah Abdali defeated the Marathas, ending their ambitions of ruling over India.