The hotel is popular with UN workers and foreign residents of Burkina Faso. Photo: AP on BBC News
Burkina Faso's government says 28 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.
Six of those killed were from Canada, the country's Prime Minister Justin Trudeau said. 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.
Burkinabe Security Minister Simon Compoare said 176 hostages had been rescued. The bodies of three "very young" attackers had been found, he said.
Among those known to have died are:
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.
Militants attacked the Splendid and the nearby Cappuccino cafe on Friday evening, setting off several explosions. Both places are popular with UN staff and foreigners.
Survivors described how the militants went from person to person, touching their bodies to see if they moved.
"They started shooting, shooting, and everybody lay down on the ground," said Mariette, who escaped from the hotel with her younger sister.
"As soon as you lifted your head they would shoot straightaway, so you had to pretend to be dead. And they even came to touch our feet to check if we were alive. As soon as you were alive, they would shoot at you."
As the end of the siege at the Splendid was being announced, reports came in that militants had taken up position at the Yibi hotel, a short distance away. One attacker was killed at the Yibi, officials said later.
Remi Dandjinou, the Burkinabe communications minister, told the BBC earlier that between six and seven militants had attacked the Splendid, adding that they had been staying at the hotel as guests.
Mr Compaore said two black Africans and an Arab were among the militants killed.
Burkina Faso recently held its first presidential election since a coup earlier last year. That coup toppled long-time leader Blaise Compaore, who had governed for 27 years.
The area surrounding the Splendid Hotel has been cordoned off. Soldiers can still be seen walking in and out of the building but the siege is now over.
At least three cars parked right outside the front door are completely charred, the remains of another two sit just across the street. Two burnt motorbikes lie in the middle.
The light purple colour of the Splendid Hotel's front side now looks black, probably caused by the smoke generated by explosions.
The Yibi hotel, opposite the Splendid, also shows signs of the attack, and the authorities say at least one attacker was killed inside the building.
Al-Qaeda in the Islamic Maghreb grew from a remnant of a defunct rebel force, rooted in Algeria's civil war in the 1990s, into a wealthy and feared militant group that made its money from kidnapping Westerners and trafficking arms and drugs.
In 2007 it announced it had joined the al-Qaeda network to fight against Western interests. Later though, some of its members left to form their own factions. The most notable of these was Mokhtar Belmokhtar who was behind the 2013 siege of a gas plant in Algeria.
In November 2015 Belmokhtar's faction said it had worked with its parent group to attack a hotel in Mali. That signalled the mending of relations between some of the factions to rebuild the original AQIM, which was being overshadowed by its rival, the so-called Islamic State.
This latest attack in Burkina Faso would seem to be an attempt by AQIM not just to reinforce itself as the main jihadist group in the region, but also to show that it can spread its violent campaign to new frontiers.