sentences:  The Banu Hud conquest of Dénia and its incorporation to the Eastern district of the taifa of Zaragoza meant the destruction of the legacy of Muyahid.The islands were freed from mainland dominion and briefly enjoyed independence, during which Medina Mayurqa was the capital.The economy during this period depended on both agriculture and piracy.