Mosque) to the emperor's private quarters, constructing barbicans in front of the two main gates to make the entrance to the palace more circuitous. The administrative and fiscal structure of the Mughal dynasty declined after Aurangzeb, and the 18th century saw a degeneration of the palace. In 1712 Jahandar Shah became the Mughal Emperor. Within a year of beginning his rule, Shah was murdered and replaced by Farrukhsiyar. In 1739, Persian emperor Nadir Shah easily defeated the strong Mughal army of around 200,000 soldiers, plundering the Red Fort, including the Peacock Throne. Nadir Shah returned to Persia after three months, leaving a destroyed city and a weakened Mughal empire to Muhammad Shah. The internal weakness of the Mughal Empire made the Mughals only titular rulers of Delhi, and a 1752 treaty made the Marathas protectors of the throne at Delhi. The 1758 Maratha victory at Sirhind aided by the Sikhs and successive defeat at Panipat placed them in further conflict with Ahmad Shah Durrani. In 1760, the Marathas removed and melted the silver ceiling of the Diwan-i-Khas to raise funds for the defence of Delhi from the armies of Ahmed Shah Durrani. In 1761, after the Marathas lost the third battle of Panipat, Delhi was raided by Ahmed Shah Durrani. Ten years later, the Marathas, acting on the behest and as mercenary of the exiled Emperor Shah Alam, recaptured Delhi from the Rohilla Afghans. Mahadji Scindia, the commander of Maratha army bowed to Mughal Emperor Shah Alam to demonstrate his submission to him. Thus, Shah Alam was restored to the throne. In 1764, the Jat ruler of Bharatpur, Maharaja Jawahar Singh (the son of Maharaja Suraj Mal) attacked Delhi and captured the Red Fort of Delhi on 5 February 1765. Two days later, after taking tribute from the Mughals, removed their armies from the fort and the Jats took away the throne of the Mughals, called the pride of the Mughals, and the doors of the Red Fort as a memorial, and this throne is today enhancing the beauty of the palaces of Deeg. The doors are located in the Lohagarh Fort of Bharatpur. In 1783 the Sikh Misl Karor Singhia, led by Baghel Singh, conquered Delhi and the Red Fort. Baghel Singh, Jassa Singh Ahluwalia and Jassa Singh Ramgarhia all allied with a 40,000 force and looted the area from Awadh to Jodhpur. After negotiations, Baghel Singh and his