The Marathas had in no way been weakened by Nadir Shah and they continued to spread in the Punjab. But in 1761 they met with a crushing defeat at Panipat from an Afghan invader, Ahmad Shah Durrani, who was ruling Afghanistan then. The flower of the Maratha forces perished in this disaster and, for a while, their dreams of empire faded away.