Archaeological findings throughout the area indicate that Senegal was inhabited in prehistoric times.
Senegal was part of the kingdom of Takrur in the 9th century and the Jolof kingdom, during the 13th and 14th centuries. In the mid-15th century, the Portuguese landed on the Senegal coastline, followed by other countries including the French.
Eastern Senegal was once part of the Empire of Ghana. Modern Senegal has always been occupied by various ethnic groups. Around the 11th Century Islam became the religion of some Senegalese tribes, though not in great numbers. In the 13th and 14th centuries, the area came under the influence of the empires to the east; the Jolof Empire of Senegal was also founded during this time. In the Senegambia region, between 1300 and 1900, close to one-third of the population was enslaved. Various European powers—Portugal, the Netherlands, and Great Britain—competed for trade in the area from the 15th century onward, until in 1677, France ended up in possession of what had become a minor slave trade departure point—the island of Gorée next to modern Dakar, used as a base to purchase slaves from the warring chiefdoms on the mainland.
Some kingdoms were created around the 7th century: the Tekrour, the Namandirou kingdom and then the Djolof with distant ties to the Ghana empire. In the 14th century the Djolof kingdom became a powerful empire having united Cayor, and the kingdoms of Baol, Sine, Saloum, Waalo, Fouta-Toro and Bambouk. The empire was a voluntary confederacy of various states rather than an empire built on military conquest. The empire was founded by Ndiadiane Ndiaye, a part Serer and part Toucouleur, who was able to form a coalition with many ethnicities, but collapsed around 1549 with the defeat and killing of Lele Fouli Fak by Amari Ngone Sobel Fall. French colonialists progressively invaded and took over all kingdoms except Sine and Saloum under governor Louis Faidherbe