The hill on which the citadel stands has been inhabited for more than 4,000 years. Archaeologists found a temple of the storm god from the Bronze Age here. Aleppo was an important centre even then.
The castle got its present form mainly around the year 1200 under az-Zahir Ghazi, a son of Saladin. He had the slope clad with stone slabs, the moat dug and the mighty entrance building erected. Later rulers, especially the Mamluks, extended the complex further.
Over the centuries, a small city grew within the walls, with palaces, mosques, baths, cisterns and storerooms. This makes the citadel one of the most impressive medieval castles in the world.