During the late Miocene, the Guadalquivir Basin and its satellite basin, the Ronda Basin, were under Atlantic cool-water influence. The aim of our study is to develop a sequence stratigraphic subdivision of the Ronda Basin fill and to provide models for the cool-water carbonates. The Upper Miocene of the Ronda Basin can be divided into three depositional sequences. Sequence 1 is early Tortonian, Sequence 2 late Tortonian to earliest Messinian, and Sequence 3 Messinian in age. The sediments were deposited in a ramp depositional system. Sequence 1 is dominated by conglomerates and marls. In Sequence 2 and Sequence 3, carbonate deposits dominate in the inner ramp whereas siliciclastics preferentially occur in the middle and outer ramp. Bryomol carbonate sediments occur in all sequences whereas rhodalgal carbonates are restricted to Sequence 3. In bays protected from siliciclastic influx, rhodalgal deposits formed under transgressive conditions. A bryomol factory occurs in zones of continuous siliciclastic supply. This distribution results from facies partitioning during the flooding of the Ronda Basin, which has a rugged and irregular relief. Embayments were protected from siliciclastic influx and provided regions with less hydraulic energy.