 In 806 Pamplona gave allegiance to the Franks, and in 824 became an independent Kingdom of Pamplona.These events put an end to the Berber garrison in Pamplona.Al-Hakam wrote that there was a major Berber revolt in north Africa in 740–741, led by Masayra.