<p><strong>Abstract.</strong> Two 3-year time series of hourly measurements of the fugacity of <span class="inline-formula">CO<sub>2</sub></span> (<span class="inline-formula"><i>f</i>CO<sub>2</sub></span>) in the upper 10<span class="thinspace"></span>m of the surface layer of the northwestern Mediterranean Sea have been recorded by CARIOCA sensors almost two decades apart, in 1995–1997 and 2013–2015. By combining them with the alkalinity derived from measured temperature and salinity, we calculate changes in pH and dissolved inorganic carbon (DIC). DIC increased in surface seawater by <span class="inline-formula">∼25</span><span class="thinspace"></span><span class="inline-formula">µ</span>mol<span class="thinspace"></span>kg<span class="inline-formula"><sup>−1</sup></span> and <span class="inline-formula"><i>f</i>CO<sub>2</sub></span> by 40<span class="thinspace"></span><span class="inline-formula">µ</span>atm, whereas seawater pH decreased by <span class="inline-formula">∼0.04</span> (0.0022<span class="thinspace"></span>yr<span class="inline-formula"><sup>−1</sup></span>). The DIC increase is about 15<span class="thinspace"></span>% larger than expected from the equilibrium with atmospheric <span class="inline-formula">CO<sub>2</sub></span>. This could result from natural variability, e.g. the increase between the two periods in the frequency and intensity of winter convection events. Likewise, it could be the signature of the contribution of the Atlantic Ocean as a source of anthropogenic carbon to the Mediterranean Sea through the Strait of Gibraltar. We then estimate that the part of DIC accumulated over the last 18 years represents <span class="inline-formula">∼30</span><span class="thinspace"></span>% of the total inventory of anthropogenic carbon in the Mediterranean Sea.</p>