After this Jehoshaphat king of Judah allied himself with Ahaziah king of Israel, who acted very wickedly.