The study of the chemical processes that occur in space, particularly within interstellar and intergalactic space.