 These Imams were recognized by Shia Islam taking Imam Ali as first Caliph/ Imam and the same is institutionalized by the Safavids and many similar institutions named now as Ismaili, Twelver etc.The period under Muawiya II was marked by civil wars (Second Fitna).This would ease in the reign of Abd al-Malik ibn Marwan, a well-educated and capable ruler.