Al-Qaeda militants in Burkina Faso killed 26 people in attacks on a cafe and a luxury hotel, where the gunmen held hostages until raids by security forces on Saturday.
The number of victims was confirmed by Prime Minister Paul Kaba Thieba after an emergency meeting of his cabinet. Earlier reports had given the number of deaths as 27.
According to Thieba, a further 56 people were injured in the attacks, several of them seriously.
Interior Minister Simon Compaore said 126 hostages had been freed from the 147-room Splendid Hotel in the West African country's capital, Ouagadougou. Another 30 were safe at the Cappuchino cafe.
Among the dead were six Canadians.
Calling the attack a "terrible crime," Canadian Prime Minister Justin Trudeau said Canada was "deeply saddened by these senseless acts of violence on innocent civilians."
Two Swiss citizens were also reportedly killed.
The siege, which began Friday evening and continued overnight with sporadic reports of gunfire and explosions, ended with Burkinabe and French soldiers launching a counter-assault on the hotel.
The attackers first opened fire upon the Cappuccino Cafe before moving on to the hotel next door, which is popular with foreigners.
Four militants were killed, Compaore said.
The US-based monitoring group SITE Intel said the group al-Qaeda in the Islamic Maghreb (AQIM) claimed responsibility.
The attack occurred just weeks after President Roch Kabore took office. Kabore was elected in November in the first free elections in the country in 50 years.
The landlocked country, a former French colony, is the largest cotton producer in Africa and is also rich in gold. Despite its resources, it is one of the poorest countries in the world.
French President Francois Hollande "declared his complete support for President Kabore and to the Burkinabe people in the despicable and cowardly attack that has hit Ouagadougou," his office said in a statement.