Tradition holds that Charles the Great ( Charlemagne ) granted a charter to the Andorran people in return for fighting against the Moors .
It is said that Charles the Great ( Charlemagne ) gave the Andorran people their country in return for fighting against the Moors .