The water that separates southern Europe from Africa has shrinked and grown over the ages. About 6 million years ago, it dried up almost completely and created a passageway for animals at the Gibraltar Strait. Scientists of the University of Cádiz created an animation to illustrate the period. You can see the video below. We have added the description from Wikipedia below the video.
"The animation shows the salinity crisis of Messiniense in the Mediterranean Sea, that took place in the Miocene geological era, characterized by the accumulation of masses of salt on its bottom and probably including a period of almost complete desiccation (00:49 minutes).
A possible cause of the subsequent closure of the connection with the Atlantic is the removal of plaque collapsing (slab rollback) during a phenomenon of subduction. (0:13 minute) in combination to the change of sea level (minute 0:28). Following the complete closure between the Atlantic Ocean and the Mediterranean Sea (0:31 minutes) the level of the Mediterranean Sea dropped rapidly just because there was no supply of water coming from the Atlantic.
The rivers that flowed into the sea, began to run the seabed creating deep ruts and waterfalls in its delta. The evaporation (0:35 minutes) produced the storage of large amounts of salt on the sea bottom (0:39 minutes). Presumably, during the period in which the level of the Mediterranean Sea was 1500-1200 meters lower than today, some mammals passed through Africa and Europe, through the present Gibraltar Strait. (minute 0:44).
It is believe that the crisis saline, ended with a flood of enormous dimensions of the Atlantic in the Mediterranean Sea 5.33 million years ago, through an passage opened in the current Straits of Gibraltar (minute 0:52). When the strait collapsed to the level of the sea, the Atlantic overflowed in the Mediterranean Sea and the water, the erosion due to the waters dug a groove getting bigger, finishing the filling process catastrophic, that lasted only few months. (minute 1:10).
Animation created by Federica Brigida under the supervision of Marina Bolado Penagos (Faculty of Marine and Environmental Sciences , of the University of Cádiz) and Daniel Garcia Castellanos."
(Source: Messinian Salinity Crisis)