Suspected Islamist gunmen who stormed a hotel in Mali's capital, Bamako, have "no more hostages", officials say.
The Radisson Blu Hotel was stormed by special forces after gunmen entered it and seized 170 people, many of them foreign guests.
Al-Qaeda in the Islamic Maghreb and its offshoot al-Murabitoun said they carried out the attack, according to an agency used by jihadists in the region.
An unnamed UN official has said at least 27 people have been killed.
The official, who spoke on condition of anonymity, said 12 bodies were found in the basement and 15 bodies were found on the second floor.
It is not clear if this includes two of the attackers who are reported to have died.
Special forces spent several hours chasing the attackers on the upper floors of the hotel. The US said the attack had ended. There is no confirmation from the Malian authorities.
One of the hostages killed was Geoffrey Dieudonne, a member of parliament in Belgium's Wallonia region.
Pictures showed some of the hostages leaving the hotel were wounded; earlier, the interior minister said two soldiers had been injured.
Some of the hostages rescued from the building had been wounded
The US-owned hotel is popular with foreign businesses and airline crews.
Eyewitnesses said the gunmen had entered the hotel shooting and shouting "God is great!" in Arabic. It is not clear how many attackers there were - there are reports of up to 13.