We develop a path-integral formalism to study the formation of large-scale structures in the universe. Starting from the equations of motion of hydrodynamics (single-stream approximation) we derive the action which describes the statistical properties of the density and velocity fields for Gaussian initial conditions. Then, we present large-N expansions (associated with a generalization to N fi...