Hamdanid dynasty
Following the Muslim conquest of Syria in the 638, Apamea was partially rebuilt and known in Arabic as “Afāmiya” or “Fāmiya”. It was settled by the Arab tribes of Bahra and Udhra. However, it only regained its importance under the rule of Aleppo-based Hamdanid dynasty. Ruled by Khalaf ibn Mula'ib from 1095–1106, the city was taken by Tancred after Khalaf's murder by Assassins. It was destroyed by an earthquake in 1152.