At least two rockets hit Baghdad's fortified Green Zone early on Thursday but caused no casualties, Iraqi security sources said.
One senior Iraqi security official said the rockets were launched from a mainly Shi'ite neighborhood in eastern Baghdad and initial investigations indicate the rockets were targeting the US embassy, but fell short.
One rocket landed in a parking lot inside the Green Zone and a second one hit a nearby empty area, said the sources.
Thursday's attack comes two days after US President Joe Biden and Iraqi Prime Minister Mustafa al-Kadhimi sealed an agreement on Monday formally ending the US combat mission in Iraq by the end of 2021.
Prime Minister Kadhimi has been facing increasing pressure from Iran-aligned parties and paramilitary groups who oppose the US military role in the country.
US diplomats and troops in Iraq and Syria were targeted in three rocket and drone attacks earlier this month, including one in which at least 14 rockets hit an Iraqi air base hosting US forces. Two US service members were wounded.
While there were no immediate claims of responsibility for the attacks - part of a wave targeting US troops or areas where they are based in Iraq and Syria - analysts believed they were part of a campaign by Iranian-backed militias.
The Green Zone hosts foreign embassies and government buildings and is regularly the target of rockets fired by groups that US and Iraqi officials say are backed by Iran.