Jehoshaphat was a good king, just like his father Asa had been. He did things that pleased Yahweh. But while he was king, he did not remove all the pagan altars that the people had built on the hilltops. So the people continued to offer sacrifices to idols on those altars and burned incense there.