After slavery was made illegal, France fought a war against Dahomey and took over the kingdom. They renamed it French Dahomey. In 1960, Dahomey gained official independence from France. From 1972 to 1990 a Marxist–Leninist state called the People's Republic of Benin existed. The current Republic of Benin was formed in 1991.