I am a professor of Astronomy at the University of St Andrews, where I study stellar magnetic fields. Magnetic activity can damage exoplanetary atmospheres by producing stellar winds and X-ray emission, affecting the planet's ability to harbour complex life.