Louis II of Hungary
After the defeat at the Battle of Mohács and the death of Louis II of Hungary, in the ensuing struggle for the Hungarian throne, the kingdom was divided into Royal Hungary of Habsburg Ferdinand I, Holy Roman Emperor and the Eastern Hungarian Kingdom of John Zápolya the Voivode of Transylvania. In 1570 the Principality of Transylvania was formed which included Máramaros County. Transylvania, including Maramureș, became an autonomous principality within the Ottoman Empire from 1541. In 1711, King Charles III returned Máramaros County to his Hungarian domain.