This article reproduces the contents of the White Paper entitled by the same name submitted to the call issued by the European Space Agency soliciting ideas from the scientific community for the science themes that should be covered during the Voyage 2050 planning cycle. This contribution focus in the investigation of the emergence of life and the role that astronomy has to play in it. Three fundamental areas of activity are identified:  measuring the chemical enrichment of the Universe,  investigating planet formation and searching for exoplanets with signatures of life and,  determining the abundance of amino acids and the chemical routes to amino acid and protein growth in astronomical bodies. This proposal deals with the first two. The building blocks of life in the Universe began as primordial gas processed in stars and mixed at galactic scales. The mechanisms responsible for this development are not well-understood and have changed over the intervening 13 billion years. To follow the evolution of matter over cosmic time, it is necessary to study the strongest (resonance) transitions of the most abundant species in the Universe. Most of them are in the ultraviolet (UV; 950 Å - 3000 Å ) spectral range that is unobservable from the ground; the “missing” metals problem cannot be addressed without this access. Habitable planets grow in protostellar discs under ultraviolet irradiation, a by-product of the accretion process that drives the physical and chemical evolution of discs and young planetary systems. The electronic transitions of the most abundant molecules are pumped by this UV field that is the main oxidizing agent in the disc chemistry and provides unique diagnostics of the planet-forming environment that cannot be accessed from the ground. Knowledge of the variability of the UV radiation field is required for the astrochemical modelling of protoplanetary discs, to understand the formation of planetary atmospheres and the photochemistry of the precursors of life. Earth’s atmosphere is in constant interaction with the interplanetary medium and the solar UV radiation field. The exosphere of the Earth extends up to 35 planetary radii providing an amazing wealth of information on our planet’s winds and the atmospheric compounds. To access to it in other planetary systems, observation of the UV resonance transitions is required. The investigation for the emergence of life calls for the development of large astronomical facilities, including instrumentation in optical and UV wavelengths. In this contribution, the need to develop a large observatory in the optical and in the UV is revealed, in order to complete the scientific goals to investigate the origin of life, inaccessible through other frequencies in the electromagnetic spectrum.