 However, the Lombards subsequently left towards Italy and the area came under the control of the Avars.Briefly in the 7th century, the area was part of the Slavic State of Samo, but was subsequently returned to Avar control.After the Avar defeat at the end of the 8th century, the area became part of the Frankish Empire.