Located in the medina with a green tiled roof and a minaret, Ben Youssef Mosque (also Bin Yusuf Mosque) is the oldest mosque in the city.[70] It was originally built in the 12th century by the Almoravid Sultan Ali ibn Yusuf, whom it is named after.[71] It served as the city's main Friday mosque.