The residents of Jerusalem made Jehoram's son Ahaziah king in his place after the raiding party that had invaded the city with the Arabs had killed all of the older sons. That's how Jehoram's son Ahaziah became king of Judah. 