After the Battle of Vienna (1683), and the subsequent (and eventual) ejection of the Ottoman armies from the Principality of Transylvania in the Second Battle of Mohács in 1687, the disintegration of the Ottoman army while it crossed the Tisza river at the Battle of Zenta, allowed Imperial Habsburg armies to conquer large areas, including most of present-day Slavonia and Transylvania came under Imperial rule. On 9 December 1687 there was organized a Diet in Pressburg and Archduke Joseph was crowned as the first hereditary king of Hungary; future Habsburgs were declared to be the anointed kings of Hungary.