The gas composing the interstellar medium (ISM) is at the same time the “exhaust” from old stars and galaxies and the material that “feeds” the birth and growth of new galaxies, new stars, and eventually new planets. Understanding the chemistry that drives star and planetary systems formation is crucial to understand the phenomena itself because the chemical and physical processes in action are deeply interconnected. The molecular composition of planets, stars, and star-forming regions, are the pieces of the puzzle that need to be reconstructed in order to understand our astrochemical origins. In my talk I will present my recent works on methanol towards starless and pre-stellar cores. I will also underline the importance of studying the chemical complexity in the nursery of future Sun-like stars in order to understand the chemical complexity inherited by forming planets.