Astronomers at the California Institute of Technology believe they now know how galaxies are formed.