By Louis Charbonneau and Parisa Hafezi
UNITED NATIONS/ANKARA (Reuters) - An unexpected last-minute U.N. invitation for Iran to a peace conference on Syria threw the talks into doubt on Monday, with Washington demanding Secretary-General Ban Ki-moon withdraw his offer and the Syrian opposition threatening to pull out.
Iran is the main foreign backer of Syrian President Bashar al-Assad and its presence has been one of the most contentious issues looming over the first talks to be attended by both Assad's government and opponents.
The talks are set to start on Wednesday in Switzerland but diplomats said the entire conference was now in jeopardy.
"Is Geneva going to happen? That is the question we can't answer at the moment," a Western diplomat said.
After the clamorous response to his invitation, Ban said "intensive and urgent" discussions were under way.
Adding to dark clouds, Assad said he might seek re-election this year, effectively dismissing any talk of negotiating his departure from power, his enemies' main demand.
The West and the Syrian opposition have long said Iran must be barred from the conference unless it first accepts an accord reached in Geneva in 2012 calling for a transitional government for Syria, which they see as a step towards unseating Assad.
Ban said he had issued the invitation after Iran's foreign minister assured him Tehran accepted the earlier accord. But Iran said it had done no such thing and had accepted Ban's invitation "without pre-conditions" - the phrase it has long used to spurn the earlier accord.
That put Western countries on a collision course with the United Nations: "If Iran does not fully and publicly accept the Geneva communiqué, the invitation must be rescinded," U.S. State Department spokeswoman Jen Psaki said in a statement.
Syria's main political opposition in exile - the National Coalition, which agreed to attend the conference known as Geneva 2 only two days ago - said it would announce it was withdrawing from the talks unless Ban revoked his invitation within hours.
"We are giving a deadline of 1900 GMT for the invitation to be withdrawn," Anas Abdah, a member of the National Coalition's political committee, told Reuters.
DISPUTE OVER 2012 ACCORD
Ban said his invitation was based on an assurance from Foreign Minister Mohammad Javad Zarif that "Iran understands that the basis for the talks is the full implementation of the 30 June 2012 Geneva communiqué".
But Iran's deputy foreign minister Hosein Amirabdollahian appeared to contradict him.
"Setting such a condition to accept the Geneva 1 agreement for attending the Geneva 2 meeting is rejected and unacceptable," the INSA news agency quoted him as saying. "Iran will attend the talks without any pre-condition, based on an invitation by U.N. Secretary-General Ban Ki-moon."
Russia, which has long lobbied for Iran to attend and criticized the opposition and the West for opposing Tehran's presence, said there was no point in a conference without it.
"Not to ensure that all those who may directly influence the situation are present would, I think, be an unforgivable mistake," Foreign Minister Sergei Lavrov said.
Saudi Arabia, Iran's regional foe and the rebels' main sponsor, said Iran should not be permitted to attend because it had troops on the ground aiding Assad. However, it stopped short of saying it would not go or urging the opposition to stay away.
ASSAD TO SEEK RE-ELECTION
The conference had already appeared doomed, with virtually no chance of achieving a breakthrough to end a war that has killed at least 130,000 people. A quarter of Syrians have been driven from their homes and half are dependent on aid, many living in areas where they cannot be helped.
Western countries and the opposition say the 2012 accord promoting a transitional governing body means Assad must leave power, and no deal is possible unless he goes. But that fundamental demand, always difficult to achieve, is far less realistic now after a year that saw Assad's position improve both on the battlefield and in the diplomatic arena.
His forces recovered ground, rebels turned against one another and Washington abandoned plans for air strikes, ending two years of speculation that the West might join the war against him as it did against Libya's Muammar Gaddafi in 2011.
In an interview on Monday with news agency AFP, Assad declared that he was likely to run for re-election later this year, making clear that his removal was not up for discussion.
"I see no reason why I shouldn't stand," Assad said. "If there is public desire and a public opinion in favor of my candidacy, I will not hesitate for a second to run for election."
He ruled out accepting opposition figures as ministers in his government, saying that was "not realistic" and said the Swiss talks should aim to "fight terrorism" - his blanket term for his armed opponents.
A powerful alliance of Islamist rebel groups has denounced the Switzerland talks and refused to attend. Even securing the attendance of the main political opposition National Coalition was a fraught affair, with many groups voting not to go.
Syria is now divided, with mainly Sunni Muslim rebels controlling the north and east, Kurds controlling the northeast and Assad's forces, led by members of his Alawite minority sect, controlling Damascus and the coast.
Western leaders who have been calling for Assad to leave power for three years have curbed their support for his opponents over the past year because of the rise of Islamists linked to al Qaeda in the rebel ranks.
The al Qaeda-linked Islamic State in Iraq in and the Levant, which fought battles with other groups and controls the town of Raqqa, imposed sweeping restrictions on personal freedoms in recent days, banning music and images of people.
No faction has the muscle to win a decisive victory on the ground. Rich Sunni Arab states led by Saudi Arabia are funding and arming the rebels, while Iran and its Lebanese Shi'ite allies Hezbollah back Assad. Violence is spreading into neighboring Iraq and Lebanon, and a humanitarian catastrophe is worsening for the millions of Syrians forced from their homes.
Syria is one of the biggest issues dividing Tehran from the West at a time when relations marked by decades of hostility have otherwise started to thaw with the election of comparatively moderate president Hassan Rouhani in Tehran. Global powers agreed in November to ease U.S. and EU sanctions on Iran in return for curbs to its nuclear program, but the thaw has so far had little impact on Syria diplomacy.
(Additional reporting by Michelle Nichols at the United Nations, Oliver Holmes in Beirut, Ali Abdelatti in Cairo, Lesley Wroughton in Washington, John Irish in Paris and Tim Heritage and Gabriella Baczynska in Moscow; writing by Peter Graff; editing by Philippa Fletcher)