forces, from 1090, is the Crusade organised by the most important mercantile cities of the Christian states against the Islands. This effort was destined to finally eradicate Muslim piracy mainly based in Palma and surrounding havens. In 1115, Palma was sacked and later abandoned by an expedition commanded by Ramon Berenguer III the Great, count of Barcelona and Provence, which was composed of Catalans, Pisans, and other Italians, and soldiers from Provence, Corsica, and Sardinia, in a struggle to end Almoravid control. After this, the Islands became part of the Almoravid dynasty. The inglobement of all the taifa to a larger state helped to re-establish a balance along the frontier that separated western Christian states from the Muslim world. Period of the Banu Ganiya (1157–1203) The situation changed in the mid-12th century when the Almoravids were displaced from al-Andalus and western Maghreb by the Almohad. Almoravid dominions, from 1157 on, were restricted to the Balearic Islands, with Palma again acting as the capital, governed by Muhammad ibn Ganiya. The massive arrival of al-Andalus refugees contributed to reinforcing the positions of the last Almoravid legitimatists, the Banu Ganiya, who, conscious of their weakness in the Western Mediterranean context, started to get closer to the growing powers represented by Italian maritime republics. Genoa and Pisans obtained in this period their first commercial concessions in the city and the rest of the islands. The Banu Ganiya, taking advantage of the great loss suffered by Abu Yuqub Yusuf in the Siege of Santarém, attacked Ifriqiya, where the Almohad dominion had not been consolidated yet, in the same year. However, this attack was repelled and the Almohad authorities encouraged anti-Almoravid revolts in the Islands. The city was captured by the Almohads in 1203. Christian reconquest and late Middle Ages On 31 December 1229, after three months of siege, the city was reconquered by James I of Aragon and was renamed Ciutat de Mallorca (Mallorca City). In addition to being kept as the capital of the Kingdom of Majorca, it was given a municipality that comprised the whole island. The governing arm was the University of the City and Kingdom of Majorca. After the death of James I of Aragon, Palma became the joint capital of the Kingdom of Majorca, together with Perpignan. His son, James II of Majorca, championed the construction of statues and monuments in the city: Bellver Castle, the churches of St. Francesc