The Treaty of Purandar was signed on 11 June 1665, between Jai Singh I, commander of the Mughal Empire, and Shivaji. Shivaji was forced to sign the agreement after Jai Singh besieged Purandar fort. The terms of the treaty made Shivaji
Following Shivaji's rebellion and hostilities against the Mughal empire in collaboration with the Adilshahi dynasty. Aurangzeb sent his senior most general Mirza Raja Jai Singh to subdue Shivaji Maharaj and the Adil Shahi dynasty.
Jai Singh besieged Purandar fort in 1665. He conquered the neighbouring Vajragad fort in the middle of April. He surrounded Purandar and attacked the walls of the fort with cannons. The Marathas suffered heavy casualties. Due to this, Shivaji decided to meet Jai Singh and accept the terms of peace. Shivaji is noted to have said when receiving Jai Singh:
Following are the main points of the treaty:
Along with these requirements, Shivaji agreed to visit Agra to meet Aurangzeb for further political talks.
Following Shivaji's surrender, Jai Singh ended the siege on Purandar, allowing 7000 residents of the fort to come out which included 4000 Maratha soldiers. Shivaji handed over his forts to Jai Singh. Following the failed rebellion, Shivaji wrote letters to Aurangzeb, requesting forgiveness for his actions and security for himself along with a robe of honour. He also requested Jai Singh to support him in getting his crimes pardoned by the emperor, stating "Now you are protector and a father to me, so I beg you to fulfil the ambition of your son." On September 15, 1665, Aurangzeb granted his request and sent him a letter and a firman along with a robe of honor. Shivaji responded with a letter thanking the emperor:
Later Shivaji travelled to Agra to Aurangzeb's court. But Aurangzeb put him under house arrest for a few months. Shivaji managed to escape and returned home. Aurangzeb blamed Jai Singh's son Ram Singh for Shivaji's escape and demoted him.