sentences:  Not having any inheritance in either Poland or Lithuania, he lived in Buda, at the court of his elder brother King Vladislaus II of Hungary, in 1498–1501 and 1502–1506.At that time he became closer with the House of Zápolya.Sigismund mediated a dispute between his brother Vladislaus and the Zápolyas, who wanted to secure the throne of Hungary to John Zápolya by securing marriage between John and Vladislaus' first-born Anne of Hungary.