Aurangzeb attempted to make an ally of Shivaji, summoning him to the Mughal court in 1666 and awarding his son, who was still a child, a royal title. Shivaji was treated with contempt by his Mughal hosts, however, and following Aurangzeb’s attempts to detain him, he escaped and resumed war against the Mughals.