According to the Kitab el Istibsar, the walls were completed in 1172.
وفقا لكتاب الإستبصار استكملت الجدران في 1172م.