Security forces in Benin are searching for the soldiers who tried to seize power on Sunday morning, with the president saying they have taken an unknown number of hostages.
The coup plotters appeared on state TV to announce they had taken over, and gunfire was heard near the presidential residence.
However, President Patrice Talon later announced that the situation was "totally under control" in the West African country.
Regional power Nigeria assisted in thwarting the mutiny, saying its fighter jets had helped "dislodge the coup plotters from the National TV and a military camp" following a request from Benin's government.
