 Two major battles of this conflict included the Siege of Kraków, in which Maximilian III failed to capture the capital of the Commonwealth, and the Battle of Byczyna, in which Maximilian was forced to surrender.Sigismund's victory was significantly the doing of Chancellor and Hetman Jan Zamoyski, who stood behind both the political intrigue and the military victories of this conflict.In 1586, following the death of previous Polish king, Stefan Batory, the Swedish crown prince Sigismund III Vasa and Habsburg Maximilian III, Archduke of Austria took part in the election to the joint Polish–Lithuanian throne.