2 Chronicles 22:1

1 The people of Jerusalem made Ahaziah, Jehoram's youngest son, king. Raiders from the desert, who had come with the Arabs against the settlement, had killed all the older sons. That's how Ahaziah son of Jehoram king of Judah became king.

2 Chronicles 22:1 Meaning and Commentary

2 Chronicles 22:1

And the inhabitants of Jerusalem made Ahaziah his youngest
son king in his stead
He being the only surviving one of the sons of Jehoram, the same with Jehoahaz, ( 2 Chronicles 21:17 ) who was saved when the rest were taken captive and slain, by his mother Athaliah, and he made his escape, and that she also escaped is clear from ( 2 Chronicles 22:10 )

for the band of men that came with the Arabians to the camp;
that is, of the Philistines, ( 2 Chronicles 21:16 ) , which band seems to be a band or company of thieves and robbers, as the Septuagint, cruel and barbarous, as the action ascribed to them shows:

[for they] had slain all the eldest;
sons of Jehoram; the Philistines and Arabians only carried them away captives, but those slew them in cold blood:

so Ahaziah the son of Jehoram king of Judah reigned;
being declared his successor by the inhabitants of Jerusalem.

2 Chronicles 22:1 In-Context

1 The people of Jerusalem made Ahaziah, Jehoram's youngest son, king. Raiders from the desert, who had come with the Arabs against the settlement, had killed all the older sons. That's how Ahaziah son of Jehoram king of Judah became king.
2 Ahaziah was twenty-two years old when he became king, but reigned only one year in Jerusalem. His mother was Athaliah, granddaughter of Omri.
3 He lived and ruled just like the Ahab family had done, his mother training him in evil ways.
4 God also considered him evil, related by both marriage and sin to the Ahab clan. After the death of his father, he attended the sin school of Ahab, and graduated with a degree in doom.
5 He did what they taught him, went with Joram son of Ahab king of Israel in the war against Hazael king of Aram at Ramoth Gilead. Joram, wounded by the Arameans,
Published by permission. Originally published by NavPress in English as THE MESSAGE: The Bible in Contemporary Language copyright 2002 by Eugene Peterson. All rights reserved.