Answer
King Michael's unexpected demise paved the way for Sobieski's swift ascent to the throne, propelled by the Polish–Lithuanian nobility's urgent need for a resolute and experienced leader amid a period of political turmoil and external threats. Sobieski's military prowess and strategic acumen, honed through years of military campaigns and diplomatic efforts, made him an ideal candidate to address the challenges facing the Polish–Lithuanian Commonwealth at that critical juncture.