Astrochemistry is the study of the formation, destruction and excitation of molecules in astronomical environments. Stars and planets are formed deep inside dense clouds. When these clouds collapse, the surrounding gas and dust become part of the infalling envelopes and rotating disks, thus providing the basic material from which new planetary systems are formed. This chapter focuses on the chemistry along this journey from clouds to disks and planets. The state of the art, important questions and goals on this frontier are discussed along with opportunities for key advancements.