After this Jehoshaphat, king of Judah, allied himself with Ahaziah, king of Israel, who committed much wickedness.