Under Fazıl Mustafa Pasha's successors, the Ottomans suffered further defeats. In June 1692 the Habsburgs conquered Várad (Oradea, Romania), the seat of an Ottoman governor () since 1660. In 1694 they attempted to recapture Várad, but to no avail. On 12 January 1695, they surrendered the fortress of Gyula, the center of an Ottoman sanjak or subprovince since 1566. With the fall of Gyula, the only territory still in Ottoman hands in Hungary was to the east of the River Tisza and to the south of the river Maros, with its center at Temesvár. Three weeks later, on 6 February 1695, Ahmed II died in Edirne Palace.