In 1980, Oniščik ([23]) introduced the index of a Riemannian symmetric space as the minimal codimension of a (proper) totally geodesic submanifold. He calculated the index for symmetric spaces of rank ≤ 2, but for higher rank it was unclear how to tackle the problem. In [2], [3], [4] and [5] we developed several approaches to this problem, which allowed us to calculate the index for many symmetric spaces. Our systematic approach led to a conjecture, formulated first in [2], for how to calculate the index. The purpose of this paper is to verify the conjecture.2010 Mathematics Subject Classification. Primary 53C35, 53C40.