Ahaz was in Jerusalem. Here "Ahaz" represents himself and the people who were in Jerusalem with him. Alternate translation: "surrounded the city with Ahaz in it" or "surrounded Ahaz and the others in the city with him" (See: [[rc://en/ta/man/jit/figs-synecdoche]])