With the foundation of Dakar in 1857, Gorée gradually lost its importance. In 1872, the French colonial authorities created the two communes of Saint-Louis and Gorée, the first western-style municipalities in West Africa, with the same status as any commune in France. Dakar, on the mainland, was part of the commune of Gorée, whose administration was located on the island. However, as early as 1887, Dakar was detached from the commune of Gorée and was turned into a commune in its own right. Thus, the commune of Gorée became limited to its tiny island.