Abstract. Riparian zones play a fundamental role in regulating the amount of carbon (C) and nitrogen (N) that is exported from catchments. However, C and N removal via soil gaseous pathways can influence local budgets of greenhouse gas (GHG) emissions and contribute to climate change. Over a year, we quantified soil effluxes of carbon dioxide (CO 2 ) and nitrous oxide (N 2 O) from a Mediterranean riparian forest in order to understand the role of these ecosystems on catchment GHG emissions. In addition, we evaluated the main soil microbial processes that produce GHG (mineralization, nitrification, and denitrification) and how changes in soil properties can modify the GHG production over time and space. Riparian soils emitted larger amounts of CO 2 (1.2-10 g C m −2 d −1 ) than N 2 O (0.001-0.2 mg N m −2 d −1 ) to the atmosphere attributed to high respiration and low denitrification rates. Both CO 2 and N 2 O emissions showed a marked (but antagonistic) spatial gradient as a result of variations in soil water content across the riparian zone. Deep groundwater tables fueled large soil CO 2 effluxes near the hillslope, while N 2 O emissions were higher in the wet zones adjacent to the stream channel. However, both CO 2 and N 2 O emissions peaked after spring rewetting events, when optimal conditions of soil water content, temperature, and N availability favor microbial respiration, nitrification, and denitrification. Overall, our results highlight the role of water availability on riparian soil biogeochemistry and GHG emissions and suggest that climate change alterations in hydrologic regimes can affect the microbial processes that produce GHG as well as the contribution of these systems to regional and global biogeochemical cycles.