Stephen Báthory (; ; ; 27 September 1533 – 12 December 1586) was Voivode of Transylvania (1571–1576), Prince of Transylvania (1576–1586), King of Poland and Grand Duke of Lithuania (1576–1586). The son of Stephen VIII Báthory and a member of the Hungarian Báthory noble family, Báthory was a ruler of Transylvania in the 1570s, defeating another challenger for that title, Gáspár Bekes. In 1576 Báthory became the husband of Queen Anna Jagiellon and the third elected king of Poland. He worked closely with chancellor Jan Zamoyski. The first years of his reign were focused on establishing power, defeating a fellow claimant to the throne, Maximilian II, Holy Roman Emperor, and quelling rebellions, most notably, the Danzig rebellion. He reigned only a decade, but is considered one of the most successful kings in Polish history, particularly in the realm of military history. His signal achievement was his victorious campaign in Livonia against Russia in the middle part of his reign, in which he repulsed a Russian invasion of Commonwealth borderlands and secured a highly favorable treaty of peace (the Peace of Jam Zapolski). Youth Stephen Báthory was born on 27 September 1533 in the castle at Somlyó, also known as Szilágysomlyó (today's Șimleu Silvaniei). He was the son of Stephen VIII Báthory (d. 1534) of the noble Hungarian Báthory family and his wife Catherine Telegdi. He had at least five siblings: two brothers and three sisters. Little is known about his childhood. Around 1549–1550, he briefly visited Italy and probably spent a few months attending lectures at the Padua University. Upon his return, he joined the army of Ferdinand I, Holy Roman Emperor, and took part in his military struggle against the Turks. Some time after 1553, Báthory was captured by the Turks, and after Ferdinand I refused to pay his ransom, joined the opposing side, supporting John II Sigismund Zápolya in his struggle for power in the Eastern Hungarian Kingdom. As Zápolya's supporter, Báthory acted both as a feudal lord, military commander and a diplomat. During one of his trips to Vienna he was put under house arrest for two years. During this time he fell out of favor at Zápolya's court, and his position was largely assumed by another Hungarian noble, Gáspár Bekes. Báthory briefly retired from politics, but he still wielded considerable influence and was seen as a possible successor to Zápolya. After Zápolya's death in 1571, the