After the Count of Barcelona withdrew his troops, Majorca returned to uncontested Muslim control under the Almoravid family, Banû Gâniya.
As a result of the Almohad reunification, he created a new independent state in the Balearic Islands.
Trade between the various Mediterranean enclaves continued despite ongoing attacks on commercial shipping by Muslim forces.
In 1148, Muhammad ben Gâniya signed a treaty of non-aggression in Genoa and Pisa, which was revalidated in 1177 and in subsequent years.
The wāli was one of the sons of the Almoravid sultan, Ali ibn Yusuf, which meant that his kingdom had dynastic legitimacy.
He proclaimed its independence in 1146.

When Gâniya acceded to the Majorcan seat, there were temples, inns, and sanitary conveniences that had been built by the previous wāli, al-Khawlani.
There were social meeting places and amenities as well as three enclosures and some 48 mosques spread across the island.
There were also hydraulic and wind mills which were used to grind flour and extract groundwater.
Majorcan production was based on irrigated and rainfed products – oil, salt, mules and firewood, all of which were particularly useful to the military regime of the time.

During this period, the Majorcans developed irrigation agriculture and constructed water sources, ditches, and channels.
The land was divided into farmsteads and operated by family clans in collectives.
Management and administrative functions were concentrated in Medina Mayurqa.
Cultural and artistic life thrived, and the city soon became a trade centre between the East and West.

Although the Almoravids preached a more orthodox compliance to Islam in Barbary, Majorca was influenced by Andalusian culture, which meant their religious precepts were less strict.
Pressure from King Alfonso I and the emerging Almohad power led to a crisis in the Almoravid administration and, after the fall of Marrakech in 1147, it eventually succumbed to this new empire.

In 1203, an Almohad fleet that was leaving Denia fought a fierce battle against Gâniya, the last Almoravid stronghold of the Andalus period, incorporating Majorca into their domain.
It was then ruled by different wālis who were appointed from Marrakech, until when Abu Yahya was appointed as its governor in 1208.
He created a semi-independent principality with only a formal submission to the Almohad emir.
After the Count of Barcelona withdrew his troops, Majorca returned to uncontested Muslim control under the Almoravid family, Banû Gâniya. As a result of the Almohad reunification, he created a new independent state in the Balearic Islands. Trade between the various Mediterranean enclaves continued despite ongoing attacks on commercial shipping by Muslim forces. In 1148, Muhammad ben Gâniya signed a treaty of non-aggression in Genoa and Pisa, which was revalidated in 1177 and in subsequent years. The wāli was one of the sons of the Almoravid sultan, Ali ibn Yusuf, which meant that his kingdom had dynastic legitimacy. He proclaimed its independence in 1146.
When Gâniya acceded to the Majorcan seat, there were temples, inns, and sanitary conveniences that had been built by the previous wāli, al-Khawlani. There were social meeting places and amenities as well as three enclosures and some 48 mosques spread across the island. There were also hydraulic and wind mills which were used to grind flour and extract groundwater. Majorcan production was based on irrigated and rainfed products – oil, salt, mules and firewood, all of which were particularly useful to the military regime of the time.
During this period, the Majorcans developed irrigation agriculture and constructed water sources, ditches, and channels. The land was divided into farmsteads and operated by family clans in collectives. Management and administrative functions were concentrated in Medina Mayurqa. Cultural and artistic life thrived, and the city soon became a trade centre between the East and West.
Although the Almoravids preached a more orthodox compliance to Islam in Barbary, Majorca was influenced by Andalusian culture, which meant their religious precepts were less strict. Pressure from King Alfonso I and the emerging Almohad power led to a crisis in the Almoravid administration and, after the fall of Marrakech in 1147, it eventually succumbed to this new empire.
In 1203, an Almohad fleet that was leaving Denia fought a fierce battle against Gâniya, the last Almoravid stronghold of the Andalus period, incorporating Majorca into their domain. It was then ruled by different wālis who were appointed from Marrakech, until when Abu Yahya was appointed as its governor in 1208. He created a semi-independent principality with only a formal submission to the Almohad emir.
Conquest of Majorca