Báthory's health had been declining for several years. He died on 12 December 1586. He had no legitimate children, though contemporary rumours suggested he might have had several illegitimate children. None of these rumours have been confirmed by modern historians. His death was followed by an interregnum of one year. Maximilian II's son, Archduke Maximilian III, was elected king but was contested by the Swedish Sigismund III Vasa, who defeated Maximilian at the Byczyna and succeeded as ruler of the Commonwealth.