The multivariate orthogonal polynomials are related to a family of operators whose matrix representations are block Jacobi matrices. A sufficient condition is given so that these operators, in general unbounded, are commuting and selfadjoint. The spectral theorem for these operators is used to establish the existence of the measure of orthogonality in Favard's theorem.