Answer
Shah Alam II's empire was frequently invaded by Ahmed Shah Abdali, the Emir of Afghanistan. The first invasion occurred in 1756 and resulted in the capture of Delhi and the deposition of Shah Alam II. Abdali returned to Delhi in 1757 and defeated the Maratha forces who had attempted to restore Shah Alam II to power.