The Inalids (the sons of İnal or Yinal, Turkish: İnaloğulları or Yinaloğulları) was the name of a small beylik (principality) which reigned in a small territory around Amid (modern Diyarbakır of Turkey) between 1098-1183.
Melikşah, the sultan of Great Seljuk Empire died in 1092. After his death, the western provinces of the empire began to disintegrate. In 1095, the governor of the city of Amid (modern Diyarbakır) was a Turkmen lord (Turkish: bey) named Sadr. He defeated other Turkmen lords who tried to capture Amid. After his death his son İnal (Yinal, Inal) declared independence. However Inal soon died and during the reign of İbrahim, the small principality had to accept the suzerainty of its more powerful neighbours; first Seljuks of Syria, then Great Seljuk Empire, then Seljuk Sultanate of Rûm (1105) and finally Sökmenli (Ahlatshahs) (1109).
During the reign of Ilaldı, the beylik of Inaloğulları was able to recover. He conquered some territory from Sökmenli and in 1124 he also fought against Ismailism, a religious sect.[unreliable source?] In 1133 a new and more powerful enemy appeared at the south; the Zangids. Although Zangids defeated Ilaldı in the battle, they weren't able to capture the city.
After Ilaldı’s death in 1142, the beylik had to accept the suzerainty of Artukids who captured most of its territory. Moreover, the family of Nisan, once the viziers of the beylik, became the de facto rulers of the beylik. On 9 May 1183, the Artukids who allied with Saladin captured Amid and put an end to the beylik.