Between NUMBER@1 and NUMBER@2 , for the sake of protection from MISC@1 attacks , the city was surrounded by walls that had nine gates and three towers .

MISC@2 ORGANIZATION@1 period Between NUMBER@1 and NUMBER@2 the walls were built to protect the city , and at the time it had nine city gates and three towers .
