The Dar-el-Makhzen (or Sultanate Palace) is a historical building in Tangier, Morocco, which was the seat of residence for the Sultans of Morocco when staying in the city. It was built during the reign of sultan Moulay Ismail in the 17th century. The structure was built by Ahmad ben Ali al-Rifi, general of the Jaysh al-Rifi and semi-autonomous gouvernour of Tangiers. It was built in the Kasbah on one of the highest points of the city overlooking the Medina and the Strait of Gibraltar. Currently it is used by two museums, the Museum of Moroccan Arts and the Museum of Antiquities.