The village was a part of the Kingdom of Dahomey . In 1851 , the French made a treaty with the Dahomean King Ghezo . Originally dominated by the Kingdom of Dahomey , in 1851 the French made a treaty with the Dahomean King Ghezo that allowed them to establish a trading post at Cotonou .