Media playback is unsupported on your device Media caption John Simpson reports: ''Ramadi under the Islamic State - shocked, silent, fearful''

The Iraqi city of Ramadi has fallen to Islamic State (IS) after government forces abandoned their positions, officials say.

The police and military made a chaotic retreat after days of intense fighting.

But the US refused to confirm the capture, saying the situation was "fluid and contested" and it was too early to make "definitive statements".

Ramadi is the capital of Iraq's largest province, Anbar, and is just 70 miles (112km) west of Baghdad.

A statement purportedly from IS said its fighters had "purged the entire city". It said IS had taken the 8th Brigade army base, along with tanks and missile launchers left behind by troops.

A very well-placed source in the Anbar governor's office told the BBC Ramadi was now under the full control of Islamic State, and all government troops had withdrawn.

Image copyright Reuters Image caption Ramadi has been the scene of intense fighting

Image copyright AP Image caption Fighting has forced thousands to flee the city

Prime Minister Haider al-Abadi had ordered troops to stand their ground, saying he was deploying Shia militia to the city.

But an army officer told the BBC that most troops had retreated to a military base in the city of Khalidiya, east of Ramadi.

Government troops were running out of ammunition and could not repel the massive onslaughts by IS, he said, speaking on condition of anonymity.

Footage posted on social media showed military vehicles speeding away from Ramadi, with soldiers hanging off the sides.

Reports said Iraqi forces fled following a series of suicide car bomb attacks on Sunday.

Four almost simultaneous explosions hit police defending the Malaab district in southern Ramadi. Later, three more suicide bombers drove explosive-laden cars into the gate of the provincial military headquarters, the Anbar Operation Command, officials said.

Earlier, Mr Abadi called on pro-government forces to "hold their positions and preserve them and not allow Daesh (IS) to extend to other areas in Ramadi".

Image copyright AP Image caption Iraqi forces could be seen retreating from Ramadi

"There is continuous air cover that will help ground troops there hold their positions while waiting for support from other forces and the Popular Mobilisation Units," he said, referring to the umbrella group for Shia militias.

The militias played a key role in the government's recent recapture of the city of Tikrit from IS, but pulled out of the city following reports of widespread violence and looting.

The loss of Ramadi represents a very serious setback for the government, and Iraqi officials are alarmed, the BBC's Ahmed Maher reports from Baghdad.

However, the Pentagon said that, while IS had the advantage, there was still fighting in the city.

"We're continuing to monitor reports of tough fighting in Ramadi and the situation remains fluid and contested. It is too early to make definitive statements about the situation on the ground there at this time," said spokeswoman Maureen Schumann, quoted by AFP.

Anbar province covers a vast stretch of the country west from the capital Baghdad to the Syrian border, and contains key roads that link Iraq to both Syria and Jordan.

IS reportedly controls more than half of Anbar's territory.

The deputy head of Anbar council, Faleh al-Issawi, told the BBC that more than 500 people had been killed in the last two days of fighting in and around Ramadi, including policemen who had run out of ammunition, and civilians caught in the crossfire.

Some 8,000 people have been displaced over the same period, according to the International Organisation for Migration.

The battle against IS in maps

Troubled history of Anbar province

Image copyright Getty Images Image caption US troops occupied Anbar for eight years, suffering heavy losses in the process