After the city fell, the invaders retreated due to problems in their own lands.They were replaced by the Almoravides from North Africa, who ruled until 1176.In 1230 he annexed the island to his Crown of Aragon under the name Regnum Maioricae.From 1479, the Crown of Aragon was in dynastic union with that of Castile.
There are two small islands off the coast of Mallorca: Cabrera (southeast of Palma) and Dragonera (west of Palma). Like the other Balearic Islands of Menorca, Ibiza and Formentera, the island is an extremely popular holiday destination, particularly for tourists from Germany and the United Kingdom.
During that period, the island was visited by Ibn Hazm.
However, an expedition of Pisans and Catalans in 1114–15, led by Ramon Berenguer III, Count of Barcelona, overran the island, laying siege to Palma for eight months.
It took place on 2 July 1715 when the island capitulated to the arrival of a Bourbon fleet.
In 1716, the Nueva Planta decrees made Mallorca part of the Spanish province of Baleares, roughly the same to present-day Illes Balears province and autonomous community.