During the eighth year of his reign, while he was still young, Josiah began to seek the God of his ancestor David. Then in the twelfth year he began to purify Judah and Jerusalem, destroying all the pagan shrines, the Asherah poles, and the carved idols and cast images.