The last phase of the war (from 1604 to 1606) corresponds to the uprising of the Prince of Transylvania Stephen Bocskay. When Rudolf – mostly based on false charges – started prosecutions against a number of noble men in order to fill up the court's exhausted treasury, Bocskay, an educated strategist, resisted. He collected desperate Hungarians together with disappointed members of the nobility to start an uprising against the Habsburgs ruler. The troops marched westwards, supported by the Hajduk of Hungary, won some victories and regained the territories that had been lost to the Habsburg army until Bocskay was first declared the Prince of Transylvania (Târgu Mureș, February 21, 1605) and later also to Hungary (Szerencs, April 17, 1605). The Ottoman Empire supported Bocskay with a crown that he refused (being Christian). As Prince of Hungary he accepted negotiations with Rudolf II and concluded the Treaty of Vienna (1606).