The number of people killed in an attack by al-Shabab Islamist militants on a university in north-eastern Kenya has risen to 147, Kenyan government officials say.
The operation to secure the Garissa University College campus was now over, with all four attackers killed, they added.
Officials said 587 students had been evacuated, 79 of whom were injured.
An overnight curfew is being implemented in parts of the country.
The students have all been evacuated now the siege has ended, Kenyan officials said
All students have been accounted for, said the authorities.
Four counties near the Kenya-Somalia border, Garissa, Wajir, Mandera and Tana River, would have dusk-to-dawn curfews imposed, disaster management officials said.
Nine critically injured students were airlifted to the capital Nairobi for treatment, they added.
But each student had been accounted for by the end of the evacuation.
Attack as it happened
Masked gunmen stormed the university early on Thursday morning and took hostages.
How attack unfolded:
1. Militants enter the university grounds, two guards are shot dead
2. Shooting begins within the campus
3. Students attacked in their classrooms while preparing for exams
4. Gunmen believed isolated in the female dormitories
5. Some students make an escape through the fence
Kenya attack: Wanted man
Who are al-Shabab?
UN Secretary-General Ban Ki-moon condemned what he called a "terrorist attack" and said the UN was ready to help Kenya "prevent and counter terrorism and violent extremism".
The United States said it was offering Nairobi assistance to take on al-Shabab and would continue to work with others in the region to take on the group.
The Kenyan government has named Mohamed Kuno, a high-ranking al-Shabab official, as the mastermind of the attack.
A BBC Somali Service reporter says Mr Kuno was headmaster at an Islamic school in Garissa before he quit in 2007.
Kenyan President Uhuru Kenyatta offered his condolences to families of the victims and ordered "urgent steps" to ensure police recruits could begin training immediately. "We have suffered unnecessarily due to shortage of security personnel," he said.