"The abducted students and staff have regained their freedom and have been received by the Niger state government," Governor Abubakar Sani Bello says.
Gunmen in Nigeria have released 42 people, including 27 students, who were kidnapped from a boarding school last week in the north-central state of Niger, the state's governor has said.
Their release comes just a day after a separate raid on a school in Nigeria's Zamfara state where gunmen seized more than 300 girls.
Kidnappings for ransom by armed groups, many of whom carry guns and ride motorcycles, are common across many northern Nigerian states.
Last week, twenty-seven students, three staff and 12 members of their families were abducted by an armed gang who stormed the Government Science secondary school in the Kagara district of Niger state, overwhelming the school's security detail.
One boy was killed during the raid.
"The Abducted Students, Staff and Relatives of Government Science Collage Kagara have regained their freedom and have been received by the Niger State Government," Governor Abubakar Sani Bello said in a tweet.
Breaking News: The Abducted Students, Staff and Relatives of Government Science Collage Kagara have regained their freedom and have been received by the Niger State Government— Governor Niger (@GovNiger) February 27, 2021
Threat of 'bandits'
The recent attacks have raised concern about rising violence by armed gangs and extremists.
Radical armed group Boko Haram carries out abductions in Nigeria's turbulent northeast, as does a branch of Daesh group.
The unrest has become a political problem for President Muhammadu Buhari, a retired general and former military ruler who has faced mounting criticism in recent months over high profile attacks by the gangs known locally as "bandits".
Buhari replaced his long-standing military chiefs this month amid worsening violence in Nigeria.
Violence and insecurity have compounded the economic challenges faced by citizens in Africa's most populous country and top oil exporter, which is struggling to cope with a fall in revenues due to a slump in crude prices in addition to the impact of the Covid-19 pandemic.