The town of Asilah in modern-day Morocco was administered in the late medieval and early modern period by the Umayyad Caliphate until 1471, when it was conquered by Portugal.