Jehu executed Ahaziah because he was a member of Ahab's family. He died an ignominious death because of his wickedness as did the kings of Israel in Omri's dynasty. Nevertheless Ahaziah received an honorable burial (v. 28).
The period of alliance that ran contemporaneously with Omri's dynasty beginning with Ahab concluded when Joram of Israel and Ahaziah of Judah died. Though Ahab and Jehoshaphat undoubtedly intended to bring strength to both kingdoms through this alliance, it had the opposite effect because of the wicked influence of Ahab's house. The Lord had forbidden alliances with ungodly nations, so Judah suffered His discipline by entering into this one. Relying on human allies rather than Yahweh weakened both kingdoms. Jehu's assassinations terminated not only two kings of Israel and Judah but the alliance of the two nations as well.