# In Jehoram's days
"While Jehoram was king"
# from the control of Judah
"against Judah's control"
# set a king over themselves
The word "set" is a metonym for choosing, and the words "over themselves" is a metonym for "to rule them." Alternate translation: "chose a king to rule over them" (See: [[rc://en/ta/man/jit/figs-rpronouns]])