 Mughal emperor Aurangzeb shifted his capital from Delhi to Aurangabad to defeat Sambhaji.The Mughals invaded, fighting an War of 27 years from 1681 to 1707 in which the Marathas under Tarabai were victorious.Sambhaji was captured during this war and killed by Mughals.