Abstract. The increase of atmospheric methane (CH4) and carbon dioxide (CO2), two main anthropogenic greenhouse gases, is largely driven by fossil sources. Sources and sinks remain insufficiently characterised in the Mediterranean and Middle East areas, where very few in situ measurements area available. We investigated the atmospheric distribution of CH4 and CO2 in the region through shipborne measurement in July and August 2017. High mixing ratios were observed over the Suez Canal, Red Sea and Arabian Gulf, while generally lower mixing ratios were observed over the Gulfs of Aden and Oman. We probe the origin of CO2 and CH4 excess mixing ratio by using correlations with light alkanes and through the use of a Lagrangian model coupled to two different emission inventories of anthropogenic sources. We find that the CO2 and especially the CH4 enhancements are mainly linked to nearby oil and gas (O&G) activities over the Arabian Gulf, and a mixture of other sources over the Red Sea. The isomeric ratio of pentane is shown to be a useful indicator of the O&G component of atmospheric CH4 at the regional level. Upstream emissions linked to oil in the Northern Arabian Gulf seem to be underestimated while gas-related emissions in the Southern Gulf are overestimated in our simulations. Our results highlight the need for improvement of inventories in the area to better characterize the changes in magnitude and the complex distribution of the O&G sources in the Middle East.