Sunni militants have captured two border crossings, one with Jordan and another with Syria, as they press on with their offensive in one of Iraq's most restive regions.

Iraq officials said the militants today captured the Turaibil crossing with Jordan and the al-Walid crossing with Syria after government forces there pulled out.

The capture of the two follows the fall since Friday of the towns of Qaim, Rawah, Anah and Rutba, all of which are in the Sunni Anbar province where militants of the Islamic State of Iraq and the Levant have since January controlled the city of Fallujah and parts of the provincial capital Ramadi.

Sunni militants have seized another town in Iraq's western Anbar province, the fourth to fall in two days, officials said, in what is shaping up to be a major offensive in one of Iraq's most restive regions.

Iran's supreme leader meanwhile came out forcefully against any US intervention in Iraq, accusing Washington of fomenting the unrest and appearing to quash recent speculation that the two rivals might cooperate in addressing the shared threat posed by the advance of Islamic extremists.

The militants captured Rutba, about 90 miles east of the Jordanian border, late last night, the officials said. Residents were today negotiating with the militants to leave after an army unit on the town's outskirts threatened to start shelling.

The towns of Qaim, Rawah, Anah and Rutba are the first seized in the mainly Sunni Anbar province since fighters from the Islamic State of Iraq and the Levant and their allies overran the city of Fallujah and parts of the provincial capital of Ramadi earlier this year.

The capture of Rawah on the Euphrates River and the nearby town of Anah appeared to be part of a march toward a key dam in the city of Haditha, the destruction of which would damage the country's electrical grid and cause major flooding.

Taking Rutba gives the insurgents control over the final stretch of a major highway to neighbouring Jordan, a key artery for passengers and goods that has been infrequently used for months because of deteriorating security.

Iraqi military officials said more than 2,000 troops were quickly dispatched to the site of the dam to protect it.

Chief military spokesman, Lt Gen Qassim al-Moussawi, acknowledged the fall of the Anbar towns, saying government forces had made a tactical retreat and planned to retake them.

The Islamic State and allied militants have carved out a large fiefdom along the Iraqi-Syrian border. Control over crossings like that one in Qaim allows them to more easily move weapons and heavy equipment. Rebels control the Syrian side of the crossing.

Prime Minister Nouri Maliki's Shiite-dominated government has struggled to push back against the Sunni militants, who have seized large swathes of the country's north since taking control of the second-largest city of Mosul on June 10 as troops melted away.

Iraq has requested US airstrikes to help halt the advance, but President Barack Obama has yet to order any, and has instead called on Iraqi leaders to form a more representative government in thinly-veiled criticism of Mr Maliki.

The top leader of neighbouring Iran, which has strong influence over Baghdad, said he was opposed to any US intervention in the country.

"We strongly oppose the intervention of the US and others in the domestic affairs of Iraq," Ayatollah Ali Khamenei, who has the final say over state policy, was quoted as saying by the IRNA state news agency, in his first reaction to the crisis.

"The main dispute in Iraq is between those who want Iraq to join the .US camp and those who seek an independent Iraq," said Khamenei. "The US aims to bring its own blind followers to power."

The US has long accused Iran of meddling in Iraq, including by organising and backing Shiite militias following the 2003 invasion.

The commander of Iran's elite Quds Force, Gen Ghasem Soleimani, was reportedly in Iraq last week to consult with the government on how to stave off insurgents' gains. Soleimani's forces are a secretive branch of Iran's Revolutionary Guard that were allegedly involved in organising the anti-US militias and have more recently aided Syria's President Bashar Assad in his fight against Sunni rebels.

Mr Maliki, who has led the country since 2006 and has not yet secured a third term after April's parliamentary elections, has increasingly turned to Iranian-backed Shiite militias and volunteers to bolster his beleaguered security forces.

Thousands of Shiite militiamen paraded through Baghdad and other cities yesterday, brandishing a massive arsenal that included field artillery, rocket launchers and heavy machine guns in a show of force that promised to ramp up sectarian tensions.

In Baghdad, about 20,000 militiamen loyal to anti-US Shiite cleric Muqtada al-Sadr, many in military fatigues, marched through the Shiite Sadr City district, which saw some of the worst fighting between Shiite militias and US soldiers before a ceasefire was reached in 2008 that helped stem the sectarian bloodshed that was pushing the country to the brink of civil war.

Mr Maliki has come under growing pressure to reach out to disaffected Kurds and Sunnis, with many blaming his failure to promote reconciliation for the country's worst crisis since the US military withdrew its forces nearly three years ago.

Grand Ayatollah Ali al-Sistani, the most respected voice for Iraq's Shiite majority, who normally stays above the political fray, on Friday joined calls for Mr Maliki to reach out to the Kurdish and Sunni minorities.

The US, meanwhile, has been drawn back into the conflict. It is deploying up to 300 military advisers to join some 275 troops in and around Iraq to provide security and support for the US Embassy and other American interests.

President Barack Obama, in an interview with CBS' "Face the Nation" airing today, warned that the al Qaida-inspired militants in Iraq could grow in power and destabilise the region.

He said Washington must remain "vigilant" but would not "play whack-a-mole and send US troops occupying various countries wherever these organisations pop up".

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.