Jerusalem had been under siege since January 588 BC (2 Kings 25:1).
Jeremiah supported surrendering to the Babylonians, but this idea angered many who believed they could resist the foreign army. To protect Jeremiah, Zedekiah imprisoned him in the courtyard of the guard (Jeremiah 37:21).