In late December 2013, a group of Islamist militants crossed into Iraq from Syria in a bid to claim the cities of Fallujah and Ramadi, in Anbar province west of Baghdad.
The Iraqi government responded with an aerial bombing campaign and a siege ensued. In the weeks and months that followed, several hundred thousand people fled the area, many going north to the semi-autonomous Kurdistan region.
READ MORE: Old fault lines, new flash points in Iraq's AnbarFive months later, when the same militants – rebranded by now as the Islamic State (IS) – seized control of the Iraqi city of Mosul, triggering more than half a million people to flee their homes in just a few days, the world woke up.
Aid agencies, already struggling to support some 400,000 people who had fled Anbar, on top of a Syrian refugee population of 240,000, scrambled to respond.
Two months later, there was another Islamist advance deeper into northern Nineveh province. Further south, closer to Baghdad, Saddam Hussein’s former home city of Tikrit fell to the militants. Another wave of displacement followed.
Among those fleeing their homes were large numbers of Christians, as well as thousands of Yazidis, followers of an ancient religion related to the Zoroastrian faith.
IS, which advocates a hardline interpretation of Sunni Islam, is highly intolerant of other faiths, and views Yazidis and even Shia Muslims, as apostates.
Thousands of Yazidis were forced into a siege situation in the Sinjar Mountains, where significant numbers died in the heat, and others were forced into Syria before they could cross back into Iraq
SLIDESHOW: Life after death in Iraq
As IS has seized new territory, and as various military factions, including the Kurdish Peshmerga, the Iraqi armed forces and other militia groups, some from Iran, have fought back, there have been steady streams of people seeking refuge.
In March this year, IS was driven out of Tikrit, causing yet more people to flee, many of whom had been trapped in the city for months.
READ MORE: Iraq's IDPs: one year and counting
In May, the Iraqi military tried to seize back parts of Anbar, but ended up losing territory to IS, and in the space of few weeks more than 230,000 people had again been displaced, according to UN estimates.
As of June, the UN’s displacement total had reached 2.9million, on top of an existing one million still uprooted from early conflicts.
READ MORE: One year after Mosul's fall, Iraq's worsening displacement crisis
lr/ag