BAGHDAD (AP) — The number of people displaced within Iraq due to violence and fighting by the Islamic State group has exceeded 3 million, the United Nations said Tuesday, a grim milestone for the war-battered country.

The International Organization for Migration, or IOM, said that at least 3.09 million people have been displaced between January 2014 and June 4 within 18 Iraqi provinces. The majority of the displaced are from Anbar province, Iraq’s Sunni heartland captured last summer in a blitz by IS fighters.

Fighting in Anbar has intensified in recent months as Iraqi forces, backed by US-led coalition airstrikes, fight to claw back territory held by Islamic State.

Get The Times of Israel's Daily Edition by email and never miss our top stories Free Sign Up

The IOM report said that more than 276,000 people have been displaced over a two-month period between April and June alone amid fighting in Anbar’s provincial capital, Ramadi, which eventually saw the city slip out of the Iraqi government’s control.

At least 45 percent of Anbar’s displaced have fled to Baghdad, while about 35 percent are elsewhere within the sprawling desert province.

Iraq has been ravaged by violence since the Islamic State group first entered Anbar in late 2013 amid fierce clashes with Iraqi security forces that sent civilians fleeing from their homes. The Sunni jihadist group then waged a lightning advance across northern Iraq last June, often giving non-Sunni Muslims in territories they captured an ultimatum to convert to their version of Islam, pay a religious tax or die.

Hundreds of thousands of Iraqis who are members of the country’s many religious minorities opted to run for their lives, including Christians, Yazidis and Shiite Muslims. IOM said that over two million displaced are housed in private homes, while more than 638,000 people have been accommodated in shelters.

Last week, more than 1,500 residents returned to their homes in Tikrit, 130 kilometers (80 miles) north of Baghdad, after Iraqi security forces and allied militias recaptured the city from Islamic State. But that number pales in comparison to Tikrit’s population of 150,000 before the IS seizure of the city.

Iraqi government officials have warned that even after military operations against IS are concluded, many of the towns and villages will require extensive work to rebuild infrastructure and homes, as well as to ensure that water and electricity are working.

Copyright 2015 The Associated Press.