The Kingdom of the Franks ( Latin : Regnum Francorum ), also known as the Frankish Kingdom , the Frankish Empire ( Latin : Imperium Francorum ) or Francia , was the largest post-Roman barbarian kingdom in Western Europe . It was ruled by the Frankish Merovingian and Carolingian dynasties during the Early Middle Ages