Complex sentence: Having gathering a large number of followers, he rebelled against the caliph and led a revolt in Persia, but was defeated and slain at Rai.
Split into simpler sentences: Having gathering a large number of followers, he rebelled against the caliph in Persia. But he was defeated and slain at Rai.