Several blasts shook the Baghdad area hours after a huge funeral procession for a top Iranian general,Qasem Soleimani, killed by a US air strike there on Friday.
A projectile hit the Green Zone near the US embassy while several more were fired north of the Iraqi capital at Balad air base, which houses US forces.
Nobody was hurt in the attacks, Iraqi security sources said.
No group said it was behind the development. Pro-Iranian militants have been blamed for other recent attacks.
Iranian leaders have vowed to avenge the killing of Qasem Soleimani, who was regarded as a terrorist by the US.
Saturday’s funeral procession through Baghdad and Iraq’s Shia Muslim holy cities precedes the return of Soleimani’s remains to Iran.
Iraqis were also mourning the death of Abu Mahdi al-Muhandis, an Iraqi who commanded the Iranian-backed Kataib Hezbollah group and was killed along with Soleimani.
In another development, the group issued a warning to Iraqi security forces to “stay clear of American bases by a distance not less [than] 1,000m (0.6 miles) starting Sunday evening”, al-Mayadeen TV reported.
In response to Iranian threats of revenge, the US has sent 3,000 more troops to the Middle East and advised its citizens to leave Iraq.
At least one rocket or mortar round hit Celebration Square in the Green Zone, while another exploded in the city’s Jadria area, Iraqi security sources said.
After two rockets hit Balad air base, surveillance drones were sent up to locate the source, AFP news agency reported.
Waving Iraqi and militia flags and chanting “Death to America”, mourners walked behind the coffins from Al Muthana Airport to the gate of the Green Zone on Saturday.
Some mourners carried portraits of Soleimani while others held portraits of Iran’s Supreme Leader, Ayatollah Ali Khamenei. Later, the procession left for the holy cities of Karbala and Najaf.
Some Iraqis, conversely, celebrated in Baghdad’s streets at the news of Soleimani’s death. He was accused of orchestrating violent crackdowns on peaceful pro-democracy protests there in recent months.
Reports say the bodies of Soleimani and four other Iranians killed in the air strike will be flown on Saturday evening to Iran, which has declared three days of mourning for the assassinated general. His funeral in Iran is to be held on Tuesday.
Soleimani, 62, was widely seen as the second most powerful figure in Iran after Ayatollah Khamenei. The Quds Force reported directly to the ayatollah, and Soleimani was hailed as a heroic national figure.
Visiting Soleimani’s family members at their house in Tehran, Iranian President Hassan Rouhani said: “Revenge for his blood will be exacted on that day when the filthy hands of America will be cut off forever from the region.”
Ayatollah Khamenei promised earlier that revenge would be “forceful” while a senior IRGC general, Gholamali Abuhamzeh, raised the prospect of attacks on US warships in the Gulf.