King Zedekiah was to serve the Babylonian king (Jer 27:12-27:13)

“I spoke to King Zedekiah

Of Judah

In the same way.

‘Bring your necks

Under the yoke

Of the king of Babylon.

Serve him!

Serve his people!

Live!

Why should you,

With your people,

Die

By the sword,

By famine,

By pestilence?

Yahweh has spoken

Concerning any nation

That will not serve

The king of Babylon.”

Jeremiah says that he spoke to King Zedekiah or King Mattaniah (598-587 BCE) who had been put on the throne by the King of Babylon. Jeremiah told King Zedekiah to put his neck unde the yoke of this Babylonian king. He was to serve him and his people. Thus he would live. Why should they die by the sword, famine, or pestilence? Yahweh had said that this was to be the fate of those who did not serve the king of Babylon.