The Middle Muschelkalk (Middle Triassic) of the Catalan Coastal Range (north-east Spain) comprises sandstone, mudstone, anhydrite and minor carbonate layers. Interbedded sandstones and mudstones which are dominant in the north-eastern parts of the basin are terminal alluvial fan deposits. South-westward in the basin, the rocks become dominated by interbedded evaporites and mudstones deposited in sabkha/mudflat environments. The diagenetic and pore water evolution patterns of the Middle Muschelkalk suggest a strong facies control. During eodiagenesis, formation of microdolomite, anhydrite, baryte, magnesite, K-feldspar and mixed-layer chlorite/smectite was favoured within and adjacent to the sabkha/mudflat facies, whereas calcite, haematite, mixed-layer illite/smectite and quartz formed mainly in the alluvial facies. Low δ18OSMOW values for microdolomite (+23.7 to +28.4%) and K-feldspar overgrowths (+17.3 to +17.7%) suggest either low-temperature, isotopic disequilibrium or precipitation from low-18O porewaters. Low-18O waters might have developed, at least in part, during low-temperature alteration of volcanic rock fragments. During mesodiagenesis, precipitation of quartz overgrowths and coarse dolomite occurred in the alluvial sandstones, whereas recrystallization of microdolomite was dominant in the sabkha/mudflat facies. The isotopic compositions of these mesogenetic phases reflect increasing temperature during burial. Upon uplift and erosion, telogenetic calcite and trace haematite precipitated in fractures and replaced dolomite. The isotopic composition of the calcite (δ18OSMOW=+21.5 to +25.6%o; δ13C= 7.7 to - 5.6%o) and presence of haematite indicate infiltration of meteoric waters.