The convergent margin off the Pacific coast of the Nicoya Peninsula of Costa Rica exhibits evidence for subduction erosion caused by the underthrusting Cocos plate. Critical evidence for efficacy of this process was recovered at the Ocean Drilling Program (ODP) drilling Site 1042 (Leg 170), positioned ???7 km landward of the Middle America trench axis off the Nicoya Peninsula. The primary drilling objective at this site was to identify the age and origin of a regionally extensive and prominent seismic discontinuity, the so-called base-of-slope sediment (BOSS) horizon or surface. The BOSS horizon, which can be traced landward from near the trench to the Nicoya coastal area and parallel to it for hundreds of kilometers, separates a low-velocity (??? 2.0-2.5 km s-1) sequence of slope sediment, from an underlying sequence of much higher-velocity (> 4-4.5 km s-1) rock. Site 1042 reached the acoustically defined BOSS horizon at a below sea level depth of ??? 3900 m and yielded a carbonate-cemented calcarenitic breccia of early-middle Miocene age. Sedimentological, geochemical, paleontological, and cement paragenesis data document that the breccia accumulated in a shallow water depositional environment. On the basis of coastal exposures, the BOSS horizon, as a margin-wide geologic interface, can be temporally and lithostratigraphically correlated to a regional angular unconformity. This unconformity, known as the Mal Pais unconformity, separates Neogene and younger shelf-to-littoral beds from the underlying mafic units of the Mesozoic Nicoya Complex and Cretaceous and early Tertiary sedimentary sequences. At Site 1042 it is inferred that tectonism caused the vertical subsidence of the early Neogene breccia from a shallow to a deep water setting. The Mal Pais unconformity of the BOSS horizon thus connects the rock fabric of the outermost part of margin to that of coastal Nicoya and implies that in the early Neogene the Nicoya shelf extended seaward to near the present trench axis. This circumstance requires that the early Neogene trench axis was at least 50 km seaward of where it is now located. The long-term effects of subduction erosion, similar to those described for the scientifically drilled Japan, Tonga, and Peru margins, best account for offshore and onshore evidence for a post-Paleogene history of crustal thinning and landward trench migration of Costa Rica's Pacific margin. During the past 16-17 Myr the calculated mass removal and landward migration rates are 34-36 km3 Myr-1 km-1 of margin, and 3 km Myr-1, respectively. These values are similar to those found for other Pacific margins dominated by nonaccretionary subduction zone processes.