This repository contains the SEWA-MHWs dataset, which consists of daily fields of Marine heatwaves (MHWs) macroevents, daily fields of MHWs characteristics, and daily fields of relevant atmospheric variables over Southern Europe and Western Asia region. It contains also the codes to detect MHWs macroevents and their characteristics. The SEWA-MHWs dataset is derived from the European Space Agency (ESA) Climate Change Initiative (CCI) Sea Surface Temperature (SST) v2.1 dataset and it covers the 1981-2016 period. This dataset is presented and described in detail in the "Southern Europe and Western Asia Marine Heat Waves (SEWA-MHWs): a dataset based on macroevents" manuscript by Giulia Bonino, Simona Masina, Giuliano Galimberti, and Matteo Moretti submitted to Earth System Science Data journal (Bonino et al., 2022). This repository contains 3 compressed (*.zip) folders: A) MHWs: it contains daily fields of MHWs macroevents, daily fields of MHWs characteristics SEWA_labels.nc: daily fields of labels. Each unique label represents a macro event. SEWA_IndStart.nc: daily fields of MHWs index start. SEWA_IndPeak.nc: daily fields of MHWs index peak. SEWA_IndEND.nc: daily fields of MHWs index end. SEWA_Category.nc: daily fields of MHWs categories. SEWA_IntMAx.nc: daily fields of MHWs maximum intensity [°C]. SEWA_IntMean.nc: daily fields of MHWs mean intensity [°C]. B) CODES: Python notebooks to detect MHWs macroevents and their characteristics. MHWs_stl.ipynb to detect MHWs and their characteristics SEWA_LABEL.ipynb: to generate the MHWs macroevents MHWs_filter.ipynb: to filter out the smallest macroevents STL_MarineHeatwaves.py: it contains the function “detect_stl” to detect MHWs using STL method used in MHW_stl.ipynb. This function is a modification of the “detect” function in the marineHeatWaves package created by Eric Oliver (https://github.com/ecjoliver/marineHeatWaves). C) ATM: daily mean fields of relevant atmospheric variables taken from ERA5 (Hersbach et al., 2020, freely available at https://cds.climate.copernicus.eu/cdsapp#!/dataset/reanalysis-era5-single-levels?tab=overview). These data are subsets of the ERA5 dataset, after minimal post-processing manipulation. The area extracted for these meteorological parameters is slightly bigger than the SEWA region, allowing the investigation of remote influences and/or responses of these variables in relationship with MHWs macroevents. The covered area is from 10°N to 70°N in latitude and from 50°W to 80°E in l...