2 The army of the king of Babylon was then besieging Jerusalem, and Jeremiah the prophet was confined in the courtyard of the guard in the royal palace of Judah.

Read Jeremiah 32:2 Using Other Translations

For then the king of Babylon's army besieged Jerusalem: and Jeremiah the prophet was shut up in the court of the prison, which was in the king of Judah's house.
At that time the army of the king of Babylon was besieging Jerusalem, and Jeremiah the prophet was shut up in the court of the guard that was in the palace of the king of Judah.
Jerusalem was then under siege from the Babylonian army, and Jeremiah was imprisoned in the courtyard of the guard in the royal palace.