The Dar al-Madrasa palace has a much more regular layout than the Dar al-Kebira, but it too appears to have been a private palace with apartments for the sultan and his family, bathhouses, a mosque or prayer hall, kitchens, and a long courtyard garden.[1][2]:266 The palace was entered via an ornate monumental gate on its north side.[21] In addition to the Bahriwiya Garden, the rest of the walled enclosure here was also occupied by another garden called al-Tranghiya and by a small warehouse along the middle of its southern perimeter wall called al-Heri al-Saghir.[3]