The first known ruler of Ebla in…
1989 BCE to 1978 BCE
The first known ruler of Ebla in this period is Megum, an Ensi (governor) for Ur III during the reign of Amar-Sin of Ur, who reigned in around 1981 BCE to 1973 BCE (short chronology).
Ibbit-Lim, an Amorite prince of Ebla, is the first attested king, though sources are divided as to whether he was a king in Ebla or of Mari.
A reasonable suggestion is that he ruled in Ebla as king of Mari at a time of Amorite domination of Ebla, thus placing the city under Mari's control.