Upper Miocene heterozoan carbonates crop out extensively in a NE-SW-trending belt (42 km long and 1.5-8 km wide) along the so-called El Alcor topographic high, from Carmona to Dos Hermanas (Seville, S Spain). These carbonates formed at the southern active margin of the Guadalquivir Basin, the foreland basin of the Betic Cordillera.They change to marls basinward (NE) and to sands landward (SE and SW). Therefore, carbonate production was constrained to a limited area in an otherwise siliciclastic shelf.The carbonates (up to 40 m thick) overlie a gradually coarsening-upward succession of marls followed by silts and sandstones. The carbonate sequence can be divided into three subunits corresponding, from bottom to top, to lowstand, transgressive, and highstands system tracts deposits. The lower subunit, exhibiting extensive trough crossbedding, is interpreted as a shallow-water bar deposit. The intermediate subunit onlaps underlying sediments and was deposited in deeper, low-turbulence conditions. The upper subunit deposits accumulated in a well-oxygenated outer platform based on benthic foraminiferal assemblages. The presence of hummocky and swaley crossstratification in these latter deposits suggests that they were affected by storms.Pervasive fluid-escape structures are also observed throughout the carbonates.The three subunits consist of bioclastic packstones to rudstones made up of abundant fragments of small mytilids. Isotopic data from serpulid polychaete Ditrupa tubes show 13 C-depleted values (up to -16.1‰), whereas 18 O yields normal marine values. Additional isotopic data on shells of scallops, oysters, and small mussels, as well as bulk sediment, show diagenetic alterations. Based on actualistic examples of massive concentrations of mussels, the nearly monospecific composition of the El Alcor deposits, together with negative 13 C values of Ditrupa tubes, indicates that cold seeps A C C E P T E D M A N U S C R I P T