qnli question: What was Marwan II's name before he became caliph? sentence: In 739 a major Berber Revolt broke out in North Africa, which was subdued only with difficulty, but it was followed by the collapse of Umayyad authority in al-Andalus.