Averroes also accepted Plato's ideas of the deterioration of the ideal state. He cites examples from Islamic history when the Rashidun caliphate —which in Sunni tradition represented the ideal state led by "rightly guided caliphs"—became a dynastic state under Muawiyah, founder of the Umayyad dynasty. He also says the Almoravid and the Almohad empires started as ideal, shariah-based states but then deteriorated into timocracy, oligarchy, democracy and tyranny.