  We derive the amplification of the cosmological magnetic field associated
with forming gravitational structure. The self-similar solutions of
magnetohydrodynamic equations are computed both in linear and nonlinear
regimes. We find that the relatively fast magnetic field enhancement becomes
substantial in the nonlinear phase.
