The city walls on the western side of the square, adjoining the city's main western gate, Bab Mahrouk, were also lined with small chambers or shelters for the soldiers who kept watch at night, while the northern and eastern parts of the square were also occupied by miscellaneous structures such as warehouses and a marabout's tomb.