on the Iberian Peninsula, in the reign of Abu-l-Khattar (743-745) over the region of Beja, which included Alcácer, was noted for the recruitment of troops, and for the rising power of Yemeni clans in southern Portugal. The entire region was later administered by Egyptian Arab troops, that selected Beja as their regional seat. Until 844, Alcácer functioned as center for the collection of taxes in the lower Sado valley: collected primarily from the Christians who chose to remain in the valley. The first Viking raids in this year forced a political reorganization, and Alcácer became an important outpost of Al-Andalus. After an internal victory over Muwallad rebels in 888, the city was offered as reward to the Banu Dānis clan, and its keep was renamed Qaşr Abī Dānis (قصر أبي دانس ; ), commonly known simply as Al Qaşr (). The village of Al Qaşr was the base for a large fleet and arsenal that was used during the Christian-Moorish Reconquista. In 997 a Moorish fleet transported troops from Alcácer to Porto, to support Al-Mansur Ibn Abi Aamir, that culminated in the destruction of the sanctuary of Santiago de Compostela. It was then capital of the Al Qaşr Province, which by the 12th Century was a center of merchant traffic, supported by the opulent tastes of Évora. Muhammad al-Idrisi noted that forestry, and in particular pine tree harvesting, was important during this period, as was cattle raising and major agricultural cultivation. During the Almoravid dynasty Al Qasr became the administrative regional seat of an area that extended along the Atlantic coast until Trujillo, Cáceres. Crusades and Reconquista Records of the Norwegian Crusade, held from 1107 to 1110, in the aftermath of the First Crusade, and led by Norwegian king Sigurd I, include a reference to the Norwegians winning a battle in the town of Alkasse (which is possibly a reference to Al Qaşr) - where they killed such a large number of people that the town was said to have been left empty, and looted many treasures. However, the Norwegians then sailed on to the Holy Land and the town - with whatever inhabitants survived - remained Muslim. During the Fifth Crusade, when Afonso II of Portugal had a truce with the Almohads, Sueiro Bishops of Lisbon and Évora joined the Cistercian abbot of Alcobaça, the commander of Palmela, the Templars, the Hospitallers, and magnates, in an attempt to persuade