SUMMARYThe SW Iberian margin is well known for its complex tectonic setting and crustal structure and by the occurrence of moderate magnitude earthquakes and some great tsunamigenic earthquakes. Fortunately, many seismic reflection and refraction profiles have been carried out, providing detailed information about the crustal structure of the main geologic domains in this region. These studies show a first-order variation due to the transition from oceanic to continental domain, large-scale heterogeneities within the crust and an irregular Moho topography. Routine earthquake locations in this area have been usually computed using a general 1-D velocity model which is clear that cannot account for such a heterogeneous structure. In addition, regional seismic stations used to locate the Gulf of Cadiz seismicity are on land and far away to the east, implying large azimuthal gaps and distances. In this context, a 3-D approach seems necessary to properly solve the crustal velocity field and improve earthquake location in this area. With this purpose, we present a new digital 3-D P-wave velocity distribution for the crust and uppermost mantle derived from previously published controlled-source seismic experiments carried out in SW Iberia and the Gulf of Cadiz over the last 40 yr. We have reviewed more than 50 wide-angle and multichannel seismic reflection and refraction profiles and digitized the most significant published 2-D seismic velocity models, performing an updated compilation of crustal parameters (P-wave velocities and geometry and depth of the main crustal interfaces). These velocities as a function of position and depth have been interpolated using ordinary kriging algorithm to obtain, in the form of a regular georeferenced 20 × 20 × 1 km grid spacing, a high-resolution 3-D P-wave velocity distribution for the crust and uppermost mantle and a continuous Moho depth map of the whole area of this study (33°N–41°N latitude and 15°W–5°W longitude). Since current seismic location tools allow the implementation of 3-D grid structures, we have applied our 3-D model to relocate a selection of moderate earthquakes occurred in the studied region using a probabilistic nonlinear method. In the Gulf of Cadiz area the probabilistic approximation provides maximum likelihood hypocentres located within the uppermost mantle with the majority of depths ranging between 20 and 45 km. This model would subsequently be implemented at the Spanish Seismic Network for the routine relocation of the seismicity of the area.