With the Muslim invasion and conquest in 711, it became one of the main towns in the region, governed by the Taifa based in Madrid. This taifa was subject to the Umayyad Emirate and the subsequent Caliphate ruled until the middle of the 11th Century. During this time the ethnic tensions between the Berbers and Arabs weakened the Caliphate militarily while the Reconquista gained success to the north of Extremedura in Castile. During this time the Berber Almohads took control of Trujillo and it environs.
During the time of Almohad rule, wars with Portugal, Castile, and León guaranteed that the possession of Trujillo was tenuous. Rule alternated between these kingdoms and the Almohads returning for the last time to the Muslims in 1187.
Five centuries of Muslim occupation and control finally ended when an army formed by forces of the Military orders and the Bishop of Plasencia laid siege to the city of Trujillo with the support and blessing of Saint Ferdinand III. Muhammad ibn Hüd tried to relieve the town but was driven off by the besieging army.