Al Muzaffar Ghazi was one of the sons of the Sultan Al-Adil, who ruled minor Ayyubid states in the Middle East while their father reigned in Egypt.
[3] The year after this arrangement, their father Al Adil died in the middle of a Crusader invasion of Egypt, and his eldest son, Al-Kamil succeeded him.
[4] After this Al Muzaffar Ghazi took part loyally in a number of campaigns with his relatives against various other local rulers, extending the Ayyubid domains further into the mountainous regions of southeastern Anatolia.
Al-Muzaffar Ghazi enjoyed a long and peaceful reign over Mayyafariqin and he built a madrasa, enlarged the mosque, and improved the fortifications.
Mayyafariqin was on the outer rim of the Ayyubid domains, and during the reigns of Al Muzaffar Ghazi and his son, Al-Kamil Muhammad, who succeeded him in 1247(645), the city was under constant threat from the Seljuks and the Mongols.