Burkina Faso's government says 26 people were killed and a further 56 injured after Islamist militants attacked a hotel in the capital, Ouagadougou, popular with foreigners.
Al-Qaeda in the Islamic Maghreb (AQIM) has said it carried out the attack, which began on Friday night.
Those killed come from at least 18 different countries, and include two French nationals and two Swiss.
Burkina Faso is to observe 72 hours of national mourning for the victims.
The siege at the Splendid Hotel was declared over after a joint operation by local and French security forces.
At least four attackers died in the assaults. There were claims that some of those involved were women.
As well as the luxury hotel, a cafe and another hotel nearby were targeted.
Image copyrightEPAImage captionAbout 150 hostages were freed, Burkinabe officials say
Image copyrightAPImage captionThe hotel is popular with UN workers and foreign residents of Burkina Faso
Bukinabe President Roch Kabore, who arrived at the scene on Saturday morning amid tight security, said at least 150 hostages had been liberated.
The French government said two of its nationals were killed in the assault, and one is known to be injured. French medical teams were providing support, and forensic officers were travelling to Ouagadougou, it added.
Switzerland confirmed that two of the dead were Swiss citizens, who had been in the cafe which came under attack.
In another development, the Burkina Faso government said a foreign doctor and his wife were kidnapped on Friday night in the north of the country, near the border with Mali. There was initial confusion over the pair's nationality - the Burkinabe government said they were Austrian, but later corrected this to Australian.
In November, an AQIM attack on a hotel in Bamako, capital of neighbouring Mali, left 19 people dead.