 Sigismund abdicated at the Diet in Medgyes (now Mediaș in Romania) on 21March 1599.Eight days later, the Diet proclaimed Andrew Báthory prince, hoping that Andrew could make peace with the Ottomans with the assistance of Poland.Sigismund left Transylvania for Poland in June.