Nebuchadnezzar, the king of Babylonia, appointed Zedekiah to be king of Judah. He was the son of Josiah. Zedekiah ruled in place of Jehoiachin, the son of Jehoiakim.
References for Jeremiah 37:1
Zedekiah and his attendants didn't pay any attention to what the LORD had said through me. And the people of the land didn't pay any attention either.
But King Zedekiah sent Jehucal to me. He sent the priest Zephaniah along with him. Jehucal was the son of Shelemiah. Zephaniah was the son of Maaseiah. Jehucal and Zephaniah brought the king's message to me. It said, "Please pray to the LORD our God for us."
At that time I was free to come and go among the people. I had not yet been put in prison.
The armies of Babylonia were attacking Jerusalem. They received a report that Pharaoh's army had marched out of Egypt to help Zedekiah. So they pulled back from Jerusalem.
A message came to me from the Lord.