In the 16th century, Bohemia (Czechia) and Hungary, both of which bordered Poland, fell under the rule of the Austrian House of Habsburg. The Habsburgs tried to take power also in Poland, as they repeatedly presented their candidacies in the Polish royal elections, starting in 1573, but to no avail. After the 1587 Polish–Lithuanian royal election, in an attempt to become King of Poland, Maximilian III involved Austria in the War of the Polish Succession, which is considered the first major Austro-Polish war. The Austrians were decisevely defeated by the Poles at the Battle of Byczyna in 1588.