At that time, the army of the king of Babylon was besieging Jerusalem, and the prophet Jeremiah was imprisoned in the guard's courtyard in the palace of the king of Judah.