Ram Singh I
Mirza Raja Ram Singh I was the Raja of the Kingdom of Amber and head of the Kachhwaha Rajput dynasty, succeeding his father Mirza Raja Jai Singh I. He also served as the general of the Mughal Empire and commander-in-chief of its army as well as the Subahdar of Kashmir.
He was commissioned by the Mughal Emperor Aurangzeb as a commander of 4000 in 1667 to invade the Ahom Kingdom of present-day Assam, but the loss at the Battle of Saraighat and the subsequent retreat led to his recall to the capital and following disgrace and a downfall in rank and order at the imperial Mughal court which though lasted for a short span of time, rejuvenated by his great-grandson Maharaja Sawai Jai Singh II in the beginning of 18th century.
Escape of Shivaji
After the incomplete Mughal invasion of Bijapur in 1665, Maratha king Shivaji was sent to the Mughal court in Agra on 12 May 1666. Shivaji was offended by being made to stand alongside relatively low-ranking nobles, stormed out of the court, and was promptly placed under house arrest. Ram Singh was granted custody of Shivaji and his son Sambhaji.Shivaji's situation under house arrest was precarious. Aurangzeb's court deliberated whether to execute him or keep him as a servant. Jai Singh, having assured Shivaji of his personal safety, tried to influence Aurangzeb's decision. However, Aurangzeb intended to kill Shivaji and ordered Faulad Khan to transfer Shivaji from Ram Singh's custody to the house of Radanaza Khan. Ram Singh refused to deliver over Shivaji because of his father's promise of safety to Shivaji and said he should be slain first to kill Shivaji. Aurangzeb made him to sign security bond for Shivaji.
Shivaji devised a strategy to secure his freedom. He ordered the majority of his troops home and urged Ram Singh to withdraw his pledges to the emperor for the safe custody of himself and his son. Shivaji escaped and left Agra on 17 August 1666, by putting himself in one of the enormous baskets and his son Sambhaji in another.
After Shivaji's escape, Ram Singh was accused of assisting Shivaji's escape and was punished, first by being barred from entering court and subsequently by being demoted.