Bonsor studies the composition and evolution of exoplanetary systems through the spectra of polluted white dwarfs, whose atmospheres reveal the bulk geochemistry of accreted asteroids and comets, providing a unique observational window into planet formation and the delivery of prebiotic material.