The Fatimids came from Ifriqiya, modern-day Tunisia and eastern Algeria. The dynasty was founded in 909 by , who legitimised his claim through descent from Muhammad by way of his daughter Fātima as-Zahra and her husband , the first Imām, hence the name "al-Fātimiyyūn" "Fatimid".