Jehoshaphat’s father Asa had tried to expel the male prostitutes that stayed at the pagan shrines, but some of them were still there. Jehoshaphat got rid of them.