Hamdanid dynasty
Masyaf and its fortress were first mentioned by Crusader chroniclers in 1099. However, because a fortification at Masyaf likely existed prior to the 11th century, it is probable that the Aleppo-based Hamdanid dynasty built a fort at Masyaf, due to its position as an outpost overlooking the mountain roads. At that time, the fortress was a part of Jund Qinnasrin (Chalcis Province) of the Fatimid Caliphate. In the autumn of 999, Basil II, the Byzantine emperor, destroyed the fortifications at Masyaf as part of his campaign to gain control of Antioch and its environs from the Muslims.