The principal mosque of Tangier, in the lower medina between the Petit Socco and the Grand Socco. The current structure dates from the rebuilding by Sultan Moulay Ismail in the late 17th century after the English departure from Tangier in 1684, but the site has held a place of worship since Roman times — the foundations rest on a temple to Hercules, replaced by a Visigothic church, replaced by an early mosque, briefly converted to a cathedral during the Portuguese occupation (1471-1661), and finally returned to use as a mosque.
Non-Muslims may not enter, but the green-tiled minaret with its distinctive geometric brickwork is visible from across the medina and the small surrounding plaza is one of the few open spaces in the dense old town. Best viewed from the courtyard of the nearby Dar Niaba.