Of these Ahmad and his second son Isma`il overthrew the Saffarids (q.v.) and the Zaidites of Tabaristan; and thus the Samanids established themselves with the sanction of the caliph Motamid in their capital Bokhara.
Some time afterwards the Cid was sent on an embassy to collect tribute from Motamid, the king of Seville, whom he found engaged in a war with Abdallah, the king of Granada.
His son, Mahommed Abd-ul-Qasim Abenebet - who reigned by the title of El Motamid - was the third and last of the Abbadides.
El Motamid went, however, considerably further in patronage of literature than his father, for he chose as his favourite and prime minister the poet Ibn Ammar.
El Motamid was even more influenced by his favourite wife, Romaica, than by his vizir.
The caprices of Romaica, and the lavish extravagance of Motamid in his efforts to please her, form the subject of many stories.
El Motamid, in a moment of folly and rage, crucified the Jew and imprisoned the Christian members of the mission.
When Alphonso took Toledo in 1085, El Motamid called in Yusef ibn Tashfin, the Almoravide (see Spain, History, and Almoravides).
During the six years which preceded his deposition in 1091, El Motamid behaved with valour on the field, but with much meanness and political folly.
The vacillations and submissions of El Motamid did not save him from the fate which overtook his fellow-princes.
El Motamid, who had fought bravely, was weak enough to order his sons to surrender the fortresses they still held, in order to save his own life.
In 882 relations between Abmad and Mowaffaq again became strained, and the former conceived the bold plan of getting the caliph Motamid into his power, which, however, was frustrated by Mowaffaqs vigilance; but an open rupture was the result, as Mowaffaq formally deprived Abmad of his lieutenancy, while Abmad equally formally declared that Mowaffaq had forfeited the succession.
A story of Mahommedan origin, which is probably no more historical than the oath of Santa Gadea, tells of how he allowed himself to be tricked by Ibn Ammar, the favourite of Al Motamid, the king of Seville.
After the death of Constance he perhaps married and he certainly lived with Zaida, said to have been a daughter of "Benabet" (Al Motamid), Mahommedan king of Seville.
During the reign of Motamid great events took place.
Motamid had also to deal with a rising of the negro slaves in the province of Basra, led by one Ali b.
Motamid, who wished to free himself from the guardianship of his brother Mowaffaq, concerted with him a plan to emigrate to Egypt, Ahmad being himself angered against Mowaffaq on personal grounds.
During the reign of Motamid the emperor Basil I.
Motamid had appointed his son al-Mofawwid as successor to the Caliphate, and after him his brother Mowaffaq.
Shortly after Motamid died, Rajab 279 (October 892).
His successor Motamid was attacked by the Saffarid Yakub who however was compelled to flee (see CALIPHATE: C, Is).