It is one of the most famous exploits of Shivaji early in his career and has never been forgotten by successive generations in India. Shaista Khan, the maternal uncle of Emperor Aurangzeb, and the new Governor of Deccan, had made Shivaji's position precarious by his furious offensive. He had even occupied Pune (9th May 1660). Shivaji had already lost Chakan (August 1660), Kalian (May 1661), and in March 1663 the Maratha commander Netaji Palker was worsted in a sanguary fight and he had to escape losing much of the booty being brought from the Mughal territory. During these three years (February 1660 – April 1663) Shivaji had lost practically all the 'Swarajya' which he had won with great effort during the past many years and this was despite his many victories, such as at Umbar Khind (February 1661), Mira Dongar (1662), capture of Rajapur etc. He was completely non-plussed as what to do with Shaista Khan sitting pretty in Pune. At last he decided to extricate himself from this situation by some daring act to be executed by himself personally, as he had done about four years ago in case of Afzal Khan.
Within a month of the defeat of the Maratha army under Netaji Palkar, Shivaji dealt a masterly blow at the Mughals, a blow "whose cleverness of design, neatness of execution and completeness of success" made Shivaji's name a household word throughout India. He surprised and wounded the Mughal Viceroy of the Deccan in the heart of his camp, in his very bed chamber, within the inner ring of his body guards and female slaves.
In the early hours of the night (5th April 1663) Shivaji with 400 picked Mavles entered the Mughal camp through the main gate saying that they were a party of the Deccani soldiers of the Mughal army going in to relieve those who were already on duty. It was the month of Ramzan. The Khan and his household after breaking their day's