Cophylogenetics and biogeography reveal a coevolved relationship between sloths and their symbiont algae.