After all this, when Josiah had repaired the temple, King Neco of Egypt came to fight a battle at Carchemish at the Euphrates River. Josiah went to attack him.