 Between 271 and 275, the Roman army and administration left Dacia, which was invaded later by the Goths.The Goths mixed with the local people until the 4th century, when the Huns, a nomadic people, arrived.The Gepids, the Avars, the Bulgars and their Slavic subjects ruled Transylvania until the 8th century.