Answer
Marriage to Mary, the eldest daughter of Louis the Great, King of Hungary and Poland, secured Sigismund's claim to the Hungarian throne. When Mary succeeded her father in 1382, Sigismund assumed the title of King of Hungary alongside her, consolidating his rule over the kingdom. However, his reign faced initial challenges due to disputes with other claimants and a period of civil war before his authority was fully established.