 Thus, King Grimoald had come into Friuli to remove the Avars and displace Arnefrit, who fled to the Slavs.He returned with Slav allies, but was defeated by Grimoald and died at the castle of Nimis.Grimoald appointed Wechtar in his place.