Right in the heart of the medina, the Ben Youssef Medersa, one of the biggest medersas in the Maghreb, is one of the most remarkable historical monuments in Marrakesh and is worth a visit. it was built in the 16th century by the saadian abd allah al ghalib, which is confirmed by the inscriptions on the lintel of the entrance gate and on the capitals of the prayer room. Created on a 1,680-sq.m quadrilateral plan, the medersa used to accommodate 130 students rooms over two floors around an interior patio leading to the prayer room.
https://visitmarrakech.com/discover-marrakech/tourist-attractions/ben-youssef-medersa