Spatial genetic studies often require sampling broadly separated areas, difficult to access simultaneously. Although comparing localities surveyed at different time periods might result in spurious genetic differentiation, there is a general believe on the stability of genetic structure through time, particularly if sampled localities are isolated or very distant. By analysing spatial and temporal genetic differentiation of the portunid crab Liocarcinus depurator we assessed the contribution of historical and contemporary processes on population connectivity patterns across three main oceanographic discontinuities along the Atlantic-Mediterranean transition: Gibraltar Strait, Almeria-Oran Front and Ibiza Channel. A partial fragment of the cytochrome oxidase I gene was sequenced in 366 individuals collected from localities at both sides of each discontinuity during three time periods. Although localities showed genetic fluctuations through time, a significant gradient was detected along the coast for all sampling periods. Significant inter-annual differences identified within the Alicante area, north of the Almeria-Oran Front, were associated with shifts in the relative contribution of Atlantic and Mediterranean water masses. The persistence of a clinal pattern in the Atlantic-Mediterranean transition area together with local fluctuations suggests a complex balance of dispersal and selection.