In recent weeks US diplomats have gradually moved into the $592 million newly built compound, the world's largest US embassy building, leaving behind a sprawling palace they had inhabited since toppling Iraqi leader Saddam Hussein in 2003.

US officials ruled Iraq directly from the same palace for more than a year after taking Baghdad.

The opening of the new embassy is in line with a change of power that was effected on New Year's Day, when US forces in Iraq officially came under an Iraqi mandate.

US Deputy Secretary of State John Negroponte and Iraqi President Jalal Talabani attended the opening ceremony.

In a courtyard between two wings of the new building, the Iraqi national anthem was played, then US Marines raised an American flag to the tune of the Star Spangled Banner.

AP BAGHDAD