Rashidun Caliphate followed by Umayyad Caliphate
In 661, Ali was assassinated by Ibn Muljam as part of a Kharijite plot to assassinate all the different Islamic leaders in an attempt to end the civil war, but the Kharijites failed to assassinate Mu'awiya and 'Amr ibn al-'As.
Ali's son Hasan ibn Ali, the grandson of Muhammad, briefly assumed the caliphate and came to an agreement with Mu'awiya to fix relations between the two groups of Muslims that were each loyal to one of the two men. The treaty stated that Mu'awiya would not name a successor during his reign, and that he would let the Islamic world choose the next leader (this treaty would later be broken by Mu'awiya as he named his son Yazid I successor). Hasan was assassinated, and Mu'awiya founded the Umayyad Caliphate, supplanting the Rashidun Caliphate.
succeeded by later followed by came after