Transylvania is a historical region in central and northwestern Romania. It was part of the Dacian Kingdom (1st–2nd centuries CE), Roman Dacia (2nd–3rd centuries), the Hunnic Empire (4th–5th centuries), the Kingdom of the Gepids (5th–6th centuries), the Avar Khaganate (6th–9th centuries) and the 9th century First Bulgarian Empire. During the late 9th century, western Transylvania was reached by the Hungarian conquerors and later it became part of the Kingdom of Hungary, formed in 1000 CE. After the Battle of Mohács in 1526 it belonged to the Eastern Hungarian Kingdom, from which the Principality of Transylvania emerged. During most of the 16th and 17th centuries, the principality was a vassal state of the Ottoman Empire; however, the principality had dual suzerainty (Ottoman and Habsburg). In 1690, the Habsburgs gained possession of Transylvania through the Hungarian crown. After 1711 Habsburg control of Transylvania was consolidated, and Transylvanian princes were replaced with Habsburg imperial governors. After the Austro-Hungarian Compromise of 1867, the separate status of Transylvania ceased; it was incorporated into the Kingdom of Hungary (Transleithania) as part of the Austrian-Hungarian Empire. After World War I, Transylvania became part of Romania. In 1940 Northern Transylvania reverted to Hungary as a result of the Second Vienna Award, but it was reclaimed by Romania after the end of World War II.