In the Treaty of Speyer of August 16, 1570, John II Sigismund acknowledged his rival, Maximilian I (1564–1576) as the lawful king of Hungary and adopted the title of "prince of Transylvania and parts of the Kingdom of Hungary". The treaty also marked out the borders of the new principality, which included not only the historical province of Transylvania, but also some neighboring counties, such as Bihor and Maramureş, thenceforward collectively known as Partium. The death of John II Sigismund in 1571 threatened to throw the country again into the hands of the Habsburgs whose officers supported the Unitarian Gáspár Bekes. Now the sultan appointed Stephen Báthory, a Catholic politician, "voivode".