Then the inhabitants of Jerusalem made Ahaziah, his youngest son, king in his place, because the troops that had come with the Arabs to the camp had killed all the older sons. So Ahaziah son of Jehoram became king of Judah.
He also followed their advice and went with Joram son of Israel's King Ahab to fight against Hazael, king of Aram, in Ramoth-gilead. The Arameans wounded Joram,
so he returned to Jezreel to recover from the wounds they inflicted on him in Ramoth-gilead when he fought against Aram's King Hazael. Then Judah's King Ahaziah son of Jehoram went down to Jezreel to visit Joram son of Ahab since Joram was ill.
With his going to Joram, Ahaziah's downfall was from God, for when Ahaziah went, he went out with Joram to meet Jehu son of Nimshi, whom the LORD had anointed to destroy the house of Ahab.
So it happened when Jehu executed judgment on the house of Ahab, he found the rulers of Judah and the sons of Ahaziah's brothers who were serving Ahaziah, and he killed them.
Then Jehu looked for Ahaziah, and Jehu's soldiers captured him (he was hiding in Samaria). Then they brought him to Jehu, and they killed him. They buried him, for they said, "He is the grandson of Jehoshaphat who sought the LORD with all his heart." So the house of Ahaziah had no one to exercise power over the kingdom.
Jehoshabeath, the king's daughter, rescued Joash son of Ahaziah from the king's sons who were being killed and put him and his nurse in a bedroom. Now Jehoshabeath was the daughter of King Jehoram and the wife of Jehoiada the priest. Since she was Ahaziah's sister, she hid Joash from Athaliah so that she did not kill him.