Presidential spokesman Seydou Cissouma said two Canadian U.N. workers, Robert Fowler and his aide Louis Guay, were set free along with two female tourists.
Al Qaeda's North Africa branch had claimed the kidnapping, saying it was holding Fowler, a senior U.N. peace envoy, and the others after taking them captive in neighboring Niger.
The U.N. staffers were captured in December, while the two women were members of a group of four tourists seized a month later. Cissouma had no further details and there was no word on the fate of the two other missing tourists.
A Canadian government spokeswoman had no immediate comment.
The Al Qaeda group did not issue demands for the hostages' release, but in the past it has obtained ransoms for Western tourists kidnapped in the Sahara, the world's largest desert.
AlQaeda in Islamic North Africa, known by the French language acronym AQMI, is an Algeria-based group that joined Usama bin Laden's terrorist network in 2006 and conducts dozens of bombings or ambushes each month. It operates mainly in Algeria but is suspected of crossing the country's porous desert borders to spread violence in the rest of northwestern Africa.
Please continue to pray for the protection and rescue of Edwin Dyer and Werner Burco-Greiner who are still in terrorist captivity.