While Josiah was king, Pharaoh Neco, king of Egypt, went to the Euphrates River to help the king of Assyria. King Josiah and his army marched out to fight him, but King Neco killed him when they met at Megiddo.