Iraqi security personnel and tribesmen beat back an hours-long jihadist attack on a key city west of Baghdad on Wednesday while reinforcements reached a strategic town threatened by militants, officials said.
The attack by the Islamic State (IS) group on Ramadi, the capital of Anbar province, began around midnight and continued until 7:00 am on Wednesday, police Captain Tahsin al-Dulaimi said.
IS jihadists attacked from three directions after hitting the city with mortar fire, Dulaimi said.
Pro-government forces in Ramadi, just 100 kilometres (60 miles) west of Baghdad, have so far held out against jihadists who have launched a string of attacks elsewhere in Anbar province, putting it on the brink of falling completely.
The fall of the city would be a major blow to the fight against IS-led militants who have captured swathes of Iraq since June and would ease the movement of fighters and supplies to frontline areas near Baghdad.
The town of Amriyat al-Fallujah, a key area closer to the capital that is one of the last parts of Anbar still holding out against the jihadists, received reinforcements from the Iraqi army on Wednesday.
Major Aref al-Janabi, the police chief for the area, said two battalions had arrived and security forces were awaiting orders to attack the militants.
The town lies between the militant bastion of Fallujah, farther up the Euphrates, and the contested area of Jurf al-Sakhr, which commands access to the holy Shiite city of Karbala.
Its fall would increase the danger to Baghdad, but IS fighters would still have to capture a significant stretch of government-controlled territory before reaching the capital.
Government forces have suffered a string of bruising setbacks in Anbar in recent weeks, prompting some officials to warn that the entire province, which borders Jordan, Saudi Arabia and Baghdad province, could fall within days.
Soldiers pulled out of a base near the city of Heet and regrouped in a large desert airbase, while government forces struggled to hold their ground in the provincial capital Ramadi.
Some officials in Anbar have argued that anything short of an intervention by US ground forces would lead to Anbar falling into jihadist hands.