By analyzing starlight during planetary transits, astronomers can detect molecules and potential signs of life on distant exoplanets.