 Báthory decided to enter into the election; in the meantime he had to defeat another attempt by Bekes to challenge his authority in Transylvania, which he did by defeating Bekes at the Battle of Kerelőszentpál.On 12 December 1575, after an interregnum of roughly one and a half years, primate of Poland Jakub Uchański, representing a pro-Habsburg faction, declared Emperor Maximilian II as the new monarch.However, chancellor Jan Zamoyski and other opponents of Habsburgs persuaded many of the lesser nobility to demand a "Piast king", a Polish king.