Scientists have been scratching their heads for ages, trying to figure out why some galaxies just stop churning out stars.