Let's go over how ISIL lost the parts of Iraq that the group seized four years ago. In 2014, the group overran large swathes of northern and western Iraq, proclaiming the creation of a "caliphate."
ISIL's power peaked that year, holding about a third of Iraq, including large cities like Mosul, Tikrit, and Fallujah.
In July 2017, Iraqi troops took back Mosul.
Three months later, the government kicked ISIL out of the town of Hawija, which had been one of the last two militant enclaves.
In November of last year, Iraqi government forces took Rawah, the last town under ISIL's control.
The Iraqi government announced victory over ISIL in December.