Hamdanid dynasty
The Hamdanid dynasty was founded by Hamdan ibn Hamdun. By 892–893, he was in possession of Mardin, after fighting the Kharijites of the Jazira. In 895, Caliph al-Mutadid invaded and Hamdan fled Mardin.