While Josiah was king, King Neco of Egypt led an army to the Euphrates River to help the emperor of Assyria. King Josiah tried to stop the Egyptian army at Megiddo and was killed in battle.
His officials placed his body in a chariot and took it back to Jerusalem, where he was buried in the royal tombs. The people of Judah chose Josiah's son Joahaz and anointed him king.
Joahaz was twenty-three years old when he became king of Judah, and he ruled in Jerusalem for three months. His mother was Hamutal, the daughter of Jeremiah from the city of Libnah.
King Neco made Josiah's son Eliakim king of Judah as successor to Josiah, and changed his name to Jehoiakim. Joahaz was taken to Egypt by King Neco, and there he died.
Four of the leading men of the Northern Kingdom, Azariah son of Jehohanan, Berechiah son of Meshillemoth, Jehizkiah son of Shallum, and Amasa son of Hadlai also opposed the actions of the army.
At the king's command, Hilkiah and the others went to consult a woman named Huldah, a prophet who lived in the newer part of Jerusalem. (Her husband Shallum, the son of Tikvah and grandson of Harhas, was in charge of the Temple robes.) They described to her what had happened,
This is the message that the Lord gave to Zephaniah during the time that Josiah son of Amon was king of Judah. (Zephaniah was descended from King Hezekiah through Amariah, Gedaliah, and Cushi.)