Hundreds of protesters stormed the Swedish embassy in the Iraqi capital, Baghdad, in the early hours of Thursday morning, climbing the building's walls and setting it alight.
Protesters had rallied at the site in anticipation of the planned burning of a Quran in Sweden.
Iraqi riot police fired water cannons to break up the protests while security forces armed with electric batons chased protesters, an AFP photographer on the scene reported.
Shiite cleric supporters respond
The demonstration was called by supporters of Shiite cleric Muqtada Sadr to protest the second planned Quran burning in Sweden in recent weeks, according to posts in a popular Telegram group connecting the influential cleric and other pro-Sadr media.
The Swedish Foreign Ministry's press office also told news agency Reuters that Iraqi authorities should be protecting its diplomatic missions and staff.
"The Iraqi authorities are responsible for the protection of diplomatic missions and their staff," The Swedish Foreign Ministry said in a statement to AFP, adding that attacks on embassies and diplomats "constitute a serious violation of the Vienna Convention".
Later on Thursday morning, the ministry said in a statement that staff at the embassy were safe.
Planned Koran burning sparks anger
Swedish news agency TT reported on Wednesday that police granted an application for a public meeting outside the Iraqi embassy in the capital of Stockholm on Thursday.