The city was founded a few kilometres south of the location of the current old city, on the right bank of Queiq River which arises from the Aintab plateau in the north and runs through Aleppo southward to the fertile country of Qinnasrin. The old city of Aleppo lies on the left bank of the Queiq. It was surrounded by a circle of eight hills surrounding a prominent central hill on which the castle (originally a temple dating to the 2nd millennium BC) was erected. The radius of the circle is about . The hills are Tell as-Sawda, Tell ʕāysha, Tell as-Sett, Tell al-Yāsmīn (Al-ʕaqaba), Tell al-Ansāri (Yārūqiyya), ʕan at-Tall, al-Jallūm, Baḥsīta. The old city was enclosed within an ancient wall that was last rebuilt by the Mamluks. The wall has since disappeared. It had nine gates and was surrounded by a broad deep ditch.