And Jeremiah remained in the courtyard of the guard until the day Jerusalem was captured.
The Fall of Jerusalem
This is how Jerusalem was taken: