We prove that an indecomposable principally polarized abelian variety X is the Jacobain of a curve if and only if there exist vectors U = 0, V such that the roots x i (y) of the theta-functional equation θ(U x + V y + Z) = 0 satisfy the equations of motion of the formal infinite-dimensional Calogero-Moser system.