Rib-Hadda had left his city of Byblos for four months to conclude a treaty with the king of Beirut, Ammunira, but when he returned home, he learned that a palace coup led by his brother Ilirabih had unseated him from power.[2] He temporarily sought refuge with Ammunira and unsuccessfully appealed for support from Egypt to restore him to the throne.