Buntsandstein deposits generated in a slowly subsiding basin on the western margin of the Iberian Chain are represented by a stratigraphic succession of fluvial deposits less than 100 m thick (conglomerates, sandstones, and shales). Diagenetic processes in sand stones can be grouped as eodiagenetic, mesodiagenetic, and telodiagenetic. Eodiagenesis can be associated with Muschelkalk, Keuper, and probably early Juras sic times. Mesodiagenesis is probably related to Jurassic times. Diagenetic chemical reactions suggest a maximum burial less than 1.5 km and low tempera tures « 120°C). Patterns of porosity reduction by compaction and cementation suggest four diagenetic stages: (1) Loss of primary porosity by early mechanical compaction; (2) early cementation (K feldspar and dolomite); (3) dissolution of cements; and (4) framework collapse by re-compaction. These stages are manifested by the presence of two types of sand stone. Type I sandstones present high intergranular volume (mean, 30%). Type II sandstones are charac terized by high compactional porosity loss and exhibit low values of intergranular volume (mean, 16.9%). Type 11 sandstones are associated with the dissolution of cement and later re-compaction of type I sand stones. An intermediate telodiagenetic phase is de duced and related to the sharp unconformity between Lower Cretaceous sediments and the underlying sedi ments. This suggests that a mechanically unstable framework collapsed during the Cretaceous, generating type II sandstones. The analyzed diagenetic paths have a wide applicability on similar marginal areas of rift basins.