The crust under the strait of gibraltar rose up over time, reducing the flow of water from the atlantic.