The people of Jerusalem chose Ahaziah to be the new king in Jehoram's place. Ahaziah was Jehoram's youngest son. The people who came with the Arabs to attack Jehoram's camp killed all of Jehoram's older sons. So Ahaziah began to rule in Judah.
Ahaziah did evil in the Lord's sight. That is what Ahab's family did. Ahab's family gave advice to Ahaziah after Ahaziah's father died. They gave Ahaziah bad advice that led to his death.
Ahaziah followed the advice Ahab's family gave him and went with King Joram to fight against King Hazael from Aram at the town of Ramoth Gilead. Joram's father's name was King Ahab of Israel. But the Arameans wounded Joram in the battle.
He went back to the town of Jezreel to get well. He was wounded at Ramoth when he fought against King Hazael of Aram. Then Ahaziah went to the town of Jezreel to visit Joram. Ahaziah's father's name was Jehoram, the king of Judah. Joram's father's name was Ahab. Joram was in the town of Jezreel because he was wounded.
God caused Ahaziah's death when he went to visit Joram. Ahaziah arrived and went out with Joram to meet Jehu. Jehu's father's name was Nimshi. The Lord chose Jehu to destroy Ahab's family.
Jehu was punishing Ahab's family. He found the leaders of Judah and Ahaziah's relatives who served Ahaziah. He killed the leaders of Judah and Ahaziah's relatives.
Then Jehu looked for Ahaziah. Jehu's men caught him when he tried to hide in the town of Samaria. They brought him to Jehu. They killed Ahaziah and buried him. They said, "Ahaziah is the descendant of Jehoshaphat. Jehoshaphat followed the Lord with all his heart." Ahaziah's family had no power to hold the kingdom of Judah together.
But Jehosheba took Ahaziah's son Joash and hid him. Jehosheba put Joash and his nurse in the inside bedroom. Jehosheba was King Jehoram's daughter. She was also Jehoiada's wife. Jehoiada was a priest, and Jehosheba was Ahaziah's sister. Athaliah did not kill Joash, because Jehosheba hid him.