Asilah (Arabic: أصيلة; Berber languages: ⴰⵥⵉⵍⴰ; Portuguese: Arzila; Spanish: Arcila) is a fortified town on the northwest tip of the Atlantic coast of Morocco, about 31 km (19 mi) south of Tangier. Its ramparts and gateworks remain fully intact.
 The town's history dates back to 1500 B.C., when Phoenicians occupied a site called Silis, Zili, Zilis, or Zilil (Punic: 𐤀𐤔𐤋𐤉𐤕, ʾŠLYT, or Punic: 𐤔𐤋𐤉, ŠLY) which is being excavated at Dchar Jdid, some 12 km (7.5 mi) NE of present Asilah; that place was once considered to be the Roman stronghold Ad Mercuri, but is now accepted to be Zilil. The town of Asilah itself was originally constructed by the Idrisid dynasty, and Umayyad caliph Al-Hakam II rebuilt the town in 966. The Portuguese conquered the city in 1471 and built its fortifications, but it was abandoned because of an economic debt crisis in 1549. In 1578, Sebastian of Portugal used Asilah as a base for his troops during a planned crusade that resulted in Sebastian's death, which in turn caused the Portuguese succession crisis of 1580. The Portuguese kept hold of the town but in 1589 the Moroccans briefly regained control of Asilah, but then lost it to the Spanish.
 In 1692, the town was again taken by the Moroccans under the leadership of Moulay Ismail. Asilah served then as a base for pirates in the 19th and 20th centuries, and in 1829, the Austrians punitively bombarded the city due to Moroccan piracy.
 From 1912 to 1956, it was part of Spanish Morocco. A major plan to restore the town was undertaken in 1978 by its mayor, Mohamed Benaissa. Benaissa and painter Mohamed Melehi were instrumental in organizing an art festival, the International Cultural Moussem of Asilah, that starting in 1978 began generating tourism income. It is credited with having promoted urban renewal in Asilah, and is one of the most important art festivals in the country. It played a role in raising the average monthly income from $50 in 1978 to $140 in 2014. The festival features local artwork and music and continues to attract large numbers of tourists.
 Asilah is now a popular seaside resort, with modern holiday apartment complexes on the coast road leading to the town from Tangier. The old neighborhoods are restored and painted white, and the wealthy from Casablanca have their weekend getaways here.
 While tourism dominates, Asilah is said to offer a good introduction to Morocco. It hosts annual music and arts festivals, including a mural-painting festival. Thursday is market day. The International Cultural Festival, held in August, features jazz and Moroccan music as well as art exhibitions. The festival is also the occasion for mural painting in which the medina's houses are painted with new murals every year.
 Many of the houses of Asilah feature mashrabiya (oriel windows). The main cultural center is the Centre Hassan II des Rencontres Internationales (housed in a former Spanish barracks), which hosts festivals in the summer.
 Due to its proximity to Spain, the cuisine in Asilah is described as Ibero-Moroccan with notable delicacies including paella, anchovies, and other seafood with both Moroccan and Valencian flavor influences.
 The old walled town (medina) of Asilah is well-preserved and dates mostly from the Portuguese occupation (15th-16th century) and afterwards. The medina has been heavily restored and its buildings are typically painted white, with occasionally blue or green, in addition to which can be found many of the murals created during the International Cultural Festival. Though the Portuguese rebuilt its outline of walls, it has the typical maze-like layout and alleys of an old Moroccan city.
 
The walls of Asilah were first built by the Almohads and then restored and reinforced by the Marinids and the Wattasids. However, after the Portuguese took the city in 1471 they rebuilt the walls, making them more resistant to artillery, and modified the outline of the city, shrinking its perimeter for easier control. The current walls thus date almost entirely from the Portuguese occupation, with the possible exception of some parts of the seaside walls. There are two main gates in the walls, Bab Homar, in the mid-southern part of the walls, and Bab al-Qasaba, at the eastern end of the walls where the kasbah was once located. A rectangular tower in distinct Portuguese style, known as Borj al-Hamra ("Red Tower") or the Al-Qamra Tower, stands near the kasbah and overlooks an open square. 
The Grand Mosque of Asilah is located inside the former kasbah (citadel), at the eastern end of the medina. It was built under Moulay Ismail soon after the city was retaken for Morocco at the end of the 17th century. Moulay Ismail charged the new governor of Tangier, Ali ibn Abdallah Errifi, with building the mosque; however, it's possible that it was his son, Ahmed Errifi, who actually carried out the construction. It has an octagonal minaret, a feature common to some parts of northern Morocco but not in the rest of the country. With its whitewashed walls and minaret, its decoration is quite plain compared to other mosques built by the Errifis at the same time (such as the Kasbah Mosque in Tangier). Like other Moroccan mosques, it is open to Muslims only.  This restored palace is in the mid-northern part of the medina, alongside the sea walls. It was built in 1909 by Moulay Ahmed er-Raisuni (also known as Raisuli), a local rogue and pirate who rose to power and declared himself pasha of the region. He rose to notoriety and wealth partly through kidnappings and ransoms, including of several Westerners who wrote about him afterwards. The palace has been restored and reveals some of the luxury in which Raisuli lived. It includes a lavish reception room with zellij tilework, carved stucco, and painted wood like in other Moroccan palaces. The reception room also gives access to a large loggia and terrace overlooking the sea. Raisuli infamously claimed that he executed convicted murderers by forcing them to jump from this terrace onto the sea rocks below.
 
At the far western end of the medina is a Portuguese bastion extending out to sea, which is a popular spot for locals and tourists at sunset. In the angle between the bastion and the sea walls is a platform upon which is a small enclosed cemetery. It includes two small structures, the domed Marabout (mausoleum) of Sidi Ahmed ibn Moussa (also known as Sidi Ahmed el-Mansour and Sidi Mansour) and, across from it, the mausoleum of his sister, Lalla Mennana. Between these structures, the ground is covered with other graves which are covered in colourful ceramic tiles. Located in the new city outside the medina, this Roman Catholic Church was built by Spanish Franciscans in 1925. It is still used as a convent today and is one of the few churches in Morocco allowed to ring in public for Sunday mass. Its architecture is a mix of Spanish Colonial and Moorish styles.
 15th century
 16th century
  
 15th century
 16th century
 17th century
 18th century
 19th century
  
 16th century
 17th century
  
 15th century
 16th century
Portuguese India
 17th century
Portuguese India
 18th century
Portuguese India
  
 16th century
 17th century
 19th century
Portuguese Macau
 20th century
Portuguese Macau
  
 15th century [Atlantic islands]
 16th century [Canada]
  
 16th century
 17th century
 18th century
 19th century