The law of Charlemagne was based on Salic Law , an influence as great as that of Greece and Rome .
It stayed important in parts of western Europe for a long time because Charlemagne based his laws on the Salic law .