Answer
The Maratha general Mahadaji Shinde protected Shah Alam II and helped him return to Delhi in 1772. Shinde was a powerful warlord who controlled much of northern India at the time. He was allied with the British East India Company, and he used his influence to help Shah Alam II regain control of Delhi from the Afghans.