growth, thereby establishing Medina Mayurqa as one of the major ports for trading goods in and out of the Emirate of Córdoba. Dénia—Balearic taifa (1015–1087) The Umayyad regime, despite its administrative centralisation, mercenary army and struggle to gain wider social support, could neither harmonise the various ethnic groups inside al-Andalus nor dissolve the old tribes which still organised sporadic ethnic fighting. During the 11th century, the Caliphate's control waned considerably. Provinces broke free from the central Cordoban administration and became effectively sovereign states — taifas — under the same governors that had been named by the last Umayyad Caliphs. According to their origin, these "taifas" can be grouped under three broad categories: people of Arab, Berber or Slavic origin. Palma was part of the taifa of Dénia. The founder of this state was a client of the Al-Mansur family, Muyahid ibn Yusuf ibn Ali, who could profit from the progressive crumbling of the Caliphate's superstructure to gain control over the province of Dénia. Subsequently, Muyahid organised a campaign throughout the Balearic Islands to consolidate the district and incorporated it into their "taifa" in early 1015. During the following years, Palma became the main port from where attacks on Christian vessels and coasts could be launched. Palma was the base from where a campaign against Sardinia was launched between 1016 and 1017, which caused the Pisans and Genoese forces to intervene. Later, this intervention set the basis for Italian mercantile penetration of the city. The Denian dominion lasted until 1087, a period during which the city and the rest of the islands were relatively peaceful. Their supremacy at sea was still not rivaled by the Italian merchant republics, thus there were few external threats. Balearic Taifa (1087–1115) and Western Mediterranean 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. In the latter 11th century, Christian commercial powers took the initiative at sea against the Muslims. After centuries of fighting defensively in the face of Islamic pressure, Italians, Catalans and Occitans took offensive action. Consequently, the benefits of piracy diminished causing severe economic stress to the city. The clearest proof of the new ruling relation of