Measuring around 130 meters on its north-south axis and 70 meters on its east-west axis, it is divided along its middle by a path from north to south, which in turn is intersected by several other perpendicular paths.[1]:283–284[2]:483[3]:397 The palace structures are divided in two main groups: one to the north of the garden and one to the south. Along the west side of the garden is a row of structures that housed private apartments for the sultan as well as a small mosque and other facilities. On the east side of the garden is a gate that leads to the Barrima Mosque, the official mosque of the palace built by Muhammad ibn Abdallah.[1][3]