sentence: He lived in a period when Abbasid caliphs were facing many difficulties, the most important of which was Shia revolts.
modified: fix grammar: He lives in a period when Abbasid caliphs been facing many difficulties, the most important of which was Shia revolts.