At that time the army of Babylon was surrounding Jerusalem. Jeremiah was under arrest in the courtyard of the guard. This courtyard was at the palace of the king of Judah.