Sigismund was born in the town of Kozienice in 1467 as the fifth son of Casimir IV and his wife Elizabeth of Austria. He was one of thirteen children and was not expected to assume the throne after his father. Sigismund's eldest brother and rightful heir Vladislaus II instead became the King of Bohemia, Hungary and Croatia as the successor to George of Poděbrady in Bohemia and then to Matthias Corvinus in Hungary, thus temporarily uniting these kingdoms. When Casimir died, the Polish-Lithuanian realm was divided between the remaining two older sons, with John Albert being crowned King of Poland, and Alexander as Grand Duke of Lithuania. Alexander inherited Poland following John Albert's sudden death in 1501. Hence, Sigismund's reign only began when he succeeded Alexander to both titles in 1506 at the age of 39.