 Maximilian attempted to resolve the dispute by bringing a military force to Poland – thereby starting the War of the Polish Succession.He took Lubowla, but after a failed attempt to storm Kraków (the capital of Poland) in late 1587, successfully defended by Zamoyski, he retreated to gather more reinforcements, pursued by the forces loyal to Sigismund.While waiting for reinforcements, he was defeated at the Battle of Byczyna in January 1588, and forced to surrender.