Josiah ruled for 31 years in Jerusalem and died in 609 BC. He was killed by King Necho of Egypt while Josiah was helping the king of Assyria fight off the attacks of the Egyptian. Josiah's son Jehoahaz became the new King of Judah.