In the village of El-Eubbad, on a hillside about a kilometre east of the medina, the Sidi Bou Medien complex is one of the finest surviving works of Marinid architecture in the Maghreb. The mosque has a small but exceptionally elaborate facade — onyx columns, carved stucco, a horseshoe doorway framed by green and white zellij — and the courtyard beyond is intimate and quietly beautiful. The tomb of the saint is in a separate chamber to one side and is still actively venerated.
Beside the mosque stands the madrasa, also from 1339, with its small interior court and student cells off the upper gallery. Below the complex a stairway descends past a fourteenth-century fountain. Non-Muslim visitors are usually welcome outside prayer times; the keepers will sometimes ask a small donation. The walk up from the medina takes twenty-five minutes and is worth doing on foot for the village glimpses on the way.