During the Late Middle Ages, all three provinces had to deal with the danger posed by the growing power of the Ottoman Turks. John Hunyadi, Voivode of Transylvania and regent of Hungary managed to halt the Turkish advance into Central Europe and secured a major victory at the Battle of Belgrade in 1456. Stephen the Great of Moldavia, Mircea the Elder and Vlad the Impaler of Wallachia also successfully fought off the Turks and distracted them from the strategically more important objectives in the Mediterranean and the Balkans. However, by the middle of the 16th century, the three principalities had become Ottoman vassals. Michael the Brave of Wallachia managed to unite his realm with Transylvania and Moldavia and gain independence for a short time in 1600.