In the fourth year of Jehoiakim the son of Josiah, king of Judah, this word came to Jeremiah from the LORD: 'Take a scroll and write on it all the words that I have spoken to you against Israel and Judah and all the nations, from the day I spoke to you, from the days of Josiah until today. It may be that the house of Judah will hear all the disaster that I intend to do to them, so that every one may turn from his evil way, and that I may forgive their iniquity and their sin.' (Jer 36:1-3)
Most of Jeremiah is searing denunciations of the nations--and of God's own people. But chapters 30 to 33 are an island of consolation and comfort, promises of restoration. And this is the point of the whole prophecy, as the opening lines of Jeremiah 36 indicate (cf. 36:7). Jeremiah is written not mainly for denunciation, but for forgiveness and comfort.