Qal'at Bani Hammad is a medieval fortified palatine city located in the Hodna Mountains of M'Sila Province, Algeria. Built in 1007, it served as the first capital of the Hammadid dynasty during the 11th century. The site features an impressive 7-kilometre-long line of walls, four residential complexes, and the largest mosque built in Algeria after the Mansurah mosque, notable for its tall minaret. Excavations have revealed artifacts such as terracotta, jewels, and ceramics, highlighting the advanced civilization of the time.