In 561, the Avars captured Bessarabia and executed the local ruler Mesamer. Following the Avars, Slavs started to arrive in the region and establish settlements. Then, in 582, Onogur Bulgars settled in southeastern Bessarabia and northern Dobruja, from which they moved to Moesia Inferior (allegedly under pressure from the Khazars), and formed the nascent region of "Bulgaria". With the rise of the Khazars' state in the east, the invasions began to diminish and it was possible to create larger states. According to some opinions, the southern part of Bessarabia remained under the influence of the First Bulgarian Empire until the end of the 9th century.