The study of the chemical processes that occur in the universe, including the formation of molecules and compounds in space.