Following the death of Louis II of Hungary in the Battle of Mohács against the Ottoman Turks, Archduke Ferdinand (who was his brother-in-law by virtue of an adoption treaty signed by Maximilian and Louis at the First Congress of Vienna) was also elected the next King of Bohemia and Hungary in 1526. Bohemia and Hungary became hereditary Habsburg domains only in the 17th century: Following victory in the Battle of White Mountain (1620) over the Bohemian rebels, Ferdinand II promulgated a "Renewed Constitution" (1627) that established hereditary succession over Bohemia. Following the Battle of Mohács (1687), in which Leopold I reconquered almost all of Hungary from the Ottoman Turks, the emperor held a diet in Pressburg to establish hereditary succession in the Hungarian kingdom.