sentences:  Almoravid dominions, from 1157 on, were restricted to the Balearic Islands, with Palma again acting as the capital, governed by Muhammad ibn Ganiya.Massive arrival of al-Andalus refugees contributed to reinforce 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.