The smallest galaxies in the universe gave rise to an unexpectedly large proportion of stars. Karen Hopkin reports