Izz al-Din Husain ibn Kharmil al-Ghuri (Persian: حسین بن خارمترایل), commonly known after his father as Ibn Kharmil, was an Iranian military leader of the Ghurid dynasty, and later the semi-independent ruler of Herat and its surrounding regions.
Husain was a native of Gurziwan in Guzgan, and was the son of Kharmil, a military officer of the Ghurids who played an important role during Ala al-Din Husayn's war against the Ghaznavid ruler Bahram-Shah.
Husain is first mentioned in sources as one of the leaders of the Ghurid incursions into India. In 1185/6, Sultan Mu'izz al-Din Muhammad appointed Husain as the governor of Sialkot, a city in northern Punjab. Later in 1194, Husain, along with another Ghurid general named Qutb-ud-din Aibak, were the leaders of a raid in the eastern part of the Indus-Gangetic Plain. During the raid, they decisively defeated the Narayan ruler. In ca. 1198, Husain, along with the Ghurid prince Nasir al-Din Muhammad Kharnak, ambushed a Kara-Khitan army, which had previously plundered the northern part of the Ghurid Empire.
In 1202, Mu'izz's brother and co-ruler, the Ghurid supreme leader Ghiyath al-Din Muhammad, died of illness, and was succeeded by his Mu'izz as the leader of the Ghurid dynasty. Shortly after Ghiyath's death, however, the Khwarazmian-shah Muhammad II invaded the Ghurid Empire, and besieged Herat. Mu'izz, along with Husain, quickly managed to Muhammad from Herat and then pursued him to Khwarezm, where the Ghurid army besieged the Khwarazmian capital of Gurganj.