Modern general theory of relativity considers gravity as the curvature of space-time. The theory is based on the principle of equivalence. All bodies fall with the same acceleration in the gravitational field, which is equivalent to locally accelerated reference systems. In this article, we will affirm the concept of gravity as the curvature of the relative wave function of the Universe. That is, a change in the phase of the universal wave function of the Universe near a massive body leads to a change in all other wave functions of bodies. The main task is to find the form of the relative wave function of the Universe, as well as a new equation of gravity for connecting the curvature of the wave function and the density of matter.