2 Chronicles 21:8

In his days the Edomites revolted from under the dominion of Judah, and made themselves a king.

In his days points to the reign of Jehoram of Judah. The revolt of Edom from under Judah's dominion was not a mere political loss but a divine judgment upon Jehoram for his apostasy, with the enemies of Judah rising against him. At the same time the Philistines and Arabians invaded Judah. They plundered the king's household and carried away his sons and his wives, leaving only his youngest son.