The process by which galaxies, clusters of galaxies, and larger structures in the universe form and evolve.