It was ruled successively by the Roman Empire, Odoacer, the Ostrogoths, the Eastern Roman Empire and part of the Lombard Duchy of Friuli until it was conquered by the Frankish king Charlemagne in 774 and replaced by the Carolingian March of Friuli.