The oxygen emission at 557.7 nm is a ubiquitous component of the spectrum of the terrestrial polar aurora and the reason for its usual green colour 1 . It is also observed as a thin layer of glow surrounding the Earth near 90 km altitude in the dayside atmosphere 2,3 but it has so far eluded detection in other planets. Here we report dayglow observations of the green line outside the Earth. They have been performed with the Nadir and Occultation for Mars Discovery ultraviolet and visible spectrometer instrument on board the European Space Agency's ExoMars Trace Gas Orbiter. Using a special observation mode, scans of the dayside limb provide the altitude distribution of the intensity of the 557.7 nm line and its variability. Two intensity peaks are observed near 80 and 120 km altitude, corresponding to photodissociation of CO 2 by solar Lyman α and extreme ultraviolet radiation, respectively. A weaker emission, originating from the same upper level of the oxygen atom, is observed in the near ultraviolet at 297.2 nm. These simultaneous measurements of both oxygen lines make it possible to directly derive a ratio of 16.5 between the visible and ultraviolet emissions, and thereby clarify a controversy between discordant ab initio calculations and atmospheric measurements that has persisted despite multiple efforts. This ratio is considered a standard for measurements connecting the ultraviolet and visible spectral regions. This result has consequences for the study of auroral and airglow processes and for spectral calibration.The presence of the Martian green line dayglow emission was predicted about 40 years ago 4 . However, observations dedicated to the Martian dayglow have so far been sensitive to radiation beyond 340 nm, and thus focused on the ultraviolet (UV) spectrum [5][6][7][8] , including the Oi 297.2 nm emission. The [Oi] 557.7 and 297.2 nm forbidden emissions have the same 1 S upper state, so their intensity ratio is equal to that of their transition probability. The two transition probabilities and their ratio R = I(557.7 nm)/I(297.2 nm) have been obtained from ab initio calculations. The value recommended by NIST 1 is R = 16.7. However, atmospheric observations of the two emissions have led to lower values: R = 9.8 ± 1.0 in the terrestrial nightglow 9 and 9.3 ± 0.5 in the aurora 10 . These values depend on the instrumental calibration of two spectral windows bridged with the O 2 Herzberg i transition. As this ratio is invariant at low pressure, it is a useful standard for measurements connecting the UV and the visible regions.