International audienceUsing laboratory experiments, we investigate the role of photo and thermal degradation in the possible complexification mechanisms of organic matter that may originate from interstellar ices prior to, or during the formation of the Solar System. We perform High Resolution Orbitrap Mass Spectrometry on organic residues formed from the photo- and thermochemical alterations of Interstellar Medium (ISM) dirty ice laboratory analogues. We probe, at the molecular level, the possible effects within the protosolar nebula on the composition and structure of these organic refractory materials obtained from an initial ice composition representative of astrophysical ices. We show that nitrogen incorporation, by competing with the ...