Only two Sultans in this period personally exercised strong political and military control of the Empire: the vigorous Murad IV (1612–1640) recaptured Yerevan (1635) and Baghdad (1639) from the Safavids and reasserted central authority, albeit during a brief majority reign. Mustafa II (1695–1703) led the Ottoman counterattack of 1695–96 against the Habsburgs in Hungary, but was undone at the disastrous defeat at Zenta (11 September 1697).