The king seems to have preferred Babylon to Assyria in his foreign policy. When Egyptian armies moved up the Mediterranean coast to join Assyria in resisting Babylonian advance westward, Josiah intercepted Pharaoh Neco II (609-595 B.C.) at Megiddo and tried to stop him. Unfortunately for Judah, the Egyptians killed Josiah there in609 B.C. Egypt continued north, united with Assyria, and battled Babylon at Carchemish on the upper Euphrates River. There Babylon defeated the allies and broke the domination of the Assyrian Empire over the ancient Near Eastern world. The Battle of Carchemish in605 B.C. was one of the most important in ancient Near Eastern history for this reason. [1][source]
Josiah was a strong influence for righteousness in his day and a very capable ruler. The success of his far-reaching reforms indicates his ability to overcome much popular opinion that must have opposed his convictions. His influence for good extended even into the fallen territory of Israel. [1] Unfortunately, he died prematurely as a result of his unwise decision to challenge Pharaoh Neco (cf. 2 Chronicles 35:20-27). [source][source][source]