from 271 to 275, the goths took over the abandoned roman province. they lived in dacia until the 4th century, when another group of wandering peoples, the huns, came to dacia. the gepids, avars, with the slavic people, were in control of transylvania through the 8th century. in the 8th century, however, the country was taken over by the hungarian empire. it was made part of the first bulgarian empire, which ended romania's dark ages.