When he had been ruling for almost eight years, while he was still a young man, he began to worship God like his ancestor King David had done. Four years later, he began to get rid of all the pagan shrines on hilltops in Jerusalem and in other places in Judah, and the poles to honor the goddess Asherah, and the carved idols and statues of gods.