had settled north of the Danube) in 332. The period of Goth rule ended when the Huns arrived in the Pannonian Basin and, under Attila, attacked and destroyed some 170 settlements on both sides of the Danube. Early Middle Ages Byzantine influence is evident during the fifth to sixth century, such as the site at Ipotești–Cândești culture, but from the second half of the sixth century and in the seventh century, Slavs crossed the territory of Wallachia and settled in it, on their way to Byzantium, occupying the southern bank of the Danube. In 593, the Byzantine commander-in-chief Priscus defeated Slavs, Avars and Gepids on future Wallachian territory, and, in 602, Slavs suffered a crucial defeat in the area; Flavius Mauricius Tiberius, who ordered his army to be deployed north of the Danube, encountered his troops' strong opposition. From its establishment in 681 to approximately the Hungarians' conquest of Transylvania at the end of the tenth century, the First Bulgarian Empire controlled the territory of Wallachia. With the decline and subsequent Byzantine conquest of Bulgaria (from the second half of the tenth century up to 1018), Wallachia came under the control of the Pechenegs, Turkic peoples who extended their rule west through the tenth and 11th century, until they were defeated around 1091, when the Cumans of southern Ruthenia took control of the lands of Wallachia. Beginning with the tenth century, Byzantine, Bulgarian, Hungarian, and later Western sources mention the existence of small polities, possibly peopled by, among others, Vlachs led by knyazes and voivodes. In 1241, during the Mongol invasion of Europe, Cuman domination was ended—a direct Mongol rule over Wallachia was not attested. Part of Wallachia was probably briefly disputed by the Kingdom of Hungary and Bulgarians in the following period, but it appears that the severe weakening of Hungarian authority during the Mongol attacks contributed to the establishment of the new and stronger polities attested in Wallachia for the following decades. Creation One of the first written pieces of evidence of local voivodes is in connection with Litovoi (1272), who ruled over land each side of the Carpathians (including Hațeg Country in Transylvania), and refused to pay tribute to Ladislaus IV of Hungary. His successor was his brother Bărbat (1285–1288). The continuing weakening of the Hungarian state by further Mongol invasions (1285–1319) and the fall of the Árpád dynasty opened the way for the unification of Wallachian