When Hosni Mubarak ruled Egypt, he always warned that if he left the scene, “the Islamists” would take over.