This chapter presents the full relativistic analysis of the evolution of mass clustering. The full relativistic theory is needed to deal with three important aspects of density irregularities in the early universe. First, when the pressure is high the relativistic active gravitational mass and inertial mass associated with pressure affect the dynamics. Second, when the mean density is high, a fluctuation of even modest fractional amount containing a modest mass can have a large effect on the space curvature. One is thus led to deal with the interaction of speculations on the nature of the mass distribution and of the geometry in the early universe. Third, the horizon shrinks to zero at the time of the big bang: the seed fluctuations out of which galaxies might form were larger than the horizon and so were not in causal connection reckoned from the time of the big bang. Of course, this curious point applies as well to the homogeneous background: it was somehow contrived that all parts of the universe now visible were set expanding with quite precise uniformity even though an observer could not have discovered this much before the present epoch.