This was an open area attached to the king's palace that was surrounded by buildings and in which they kept prisoners. See how you translated this in [Jeremiah 32:2](../32/02.md).
This can be translated in active form. Alternate translation: "until the day that the Babylonian army captured Jerusalem" (See: [[rc://en/ta/man/translate/figs-activepassive]])