Stars like our Sun are formed in large, tenuous clouds of gas and dust. As the star is formed at the centre, the remaining material collapses into a thick disk around it. The chemical composition... Show moreStars like our Sun are formed in large, tenuous clouds of gas and dust. As the star is formed at the centre, the remaining material collapses into a thick disk around it. The chemical composition of such a cloud changes dramatically during this process. Spherical models have always been used to model this chemical evolution, but they cannot properly describe the disk. This thesis presents the first model that follows the entire chemical evolution from a pre-stellar core to a circumstellar disk in two spatial dimensions. It follows material as it falls in from the cloud to the star and disk. The density, temperature and UV flux along these trajectories serve as input for a gas-phase chemical network -- including freeze-out onto and evaporation from cold dust grains. The model offers new insights into the chemical history of disks, in particular of the region where planets and comets are formed. Applications of the model include the gas/ice ratios of carbon monoxide and water (Chapter 2), the abundances of key gas-phase molecules (Chapter 3), the crystallinity of the dust (Chapter 4), the isotope-specific photodissociation of carbon monoxide (Chapter 5) and the charge balance of polycyclic aromatic hydrocarbons (PAHs; Chapter 6). Show less