Increasing experimental and theoretical evidence points to formamide as a possible hub in the complex network of prebiotic chemical reactions leading from simple precursors like H 2 , H 2 O, N 2 , NH 3 , CO, and CO 2 to key biological molecules like proteins, nucleic acids, and sugars. We present an in-depth computational study of the formation and decomposition reaction channels of formamide by means of ab initio molecular dynamics. To this aim we introduce a new theoretical method combining the metadynamics sampling scheme with a general purpose topological formulation of collective variables able to track a wide range of different reaction mechanisms. Our approach is flexible enough to discover multiple pathways and intermediates starting from minimal insight on the systems, and it allows passing in a seamless way from reactions in gas phase to reactions in liquid phase, with the solvent active role fully taken into account. We obtain crucial new insight into the interplay of the different formamide reaction channels and into environment effects on pathways and barriers. In particular, our results indicate a similar stability of formamide and hydrogen cyanide in solution as well as their relatively facile interconversion, thus reconciling experiments and theory and, possibly, two different and competing prebiotic scenarios. Moreover, although not explicitly sought, formic acid/ammonium formate is produced as an important formamide decomposition byproduct in solution.chemical reactions | free energy landscapes | ab initio molecular dynamics | formamide | prebiotic scenarios V ery different environments have been suggested as possible cradles for the emergence of biomolecules, including a primordial liquid soup (1), rarified gaseous interstellar clouds (2, 3), liquid-solid interfaces at hydrothermal conditions (4), and the extreme case of impact sites of meteorites and comets (5). Biochemically relevant reactions can be fueled by a range of different energy sources, and a large number of possible chemical reactions and reaction paths are suggested to have played an important role in the process leading simple molecules to form small organic molecules and, from them, biological monomers and polymers.Among such small organic molecules, formamide is assuming an ever more central role in prebiotic chemistry research, as recently shown in experiments mimicking some of those origins of life scenarios, such as laser sparks (6), UV light (7), proton irradiation (8), or shock waves (as in meteorite impacts) (9). The main reason for such strong interest in formamide, besides its ubiquitousness in the solar system, is its chemical flexibility: it can be formed from (or, conversely, dissociated into) different molecular species that represent fundamental building blocks, including H 2 , H 2 O, NH 3 , CO, HCN, HNCO, and HCOOH (10, 11). The barriers for these different processes lie in a relatively narrow range, providing many synthetic directions. Additionally, as has been also showed experimentally and computationally, for...