Jeremiah warns the king and other government officials that Jerusalem is about to be destroyed and gets thrown into a muddy cistern for his efforts. His prophecy is fulfilled and the Babylonians take the city completely eliminating the leadership of Judah and giving the cities and fields to the poor. The Babylonians have been given instructions to treat Jeremiah well in all of this. (Note that my reading of the Chaldean names at the beginning of chapter 39 was more confused than my editrix could repair. Please refer to the biblical text there.)