Consider the class of n-dimensional Riemannian spin manifolds with bounded sectional curvatures and diameter, and almost non-negative scalar curvature. Let r = 1 if n = 2, 3 and r = 2 + 1 if n ≥ 4. We show that if the square of the Dirac operator on such a manifold has r small eigenvalues, then the manifold is diffeomorphic to a nilmanifold and has trivial spin structure. Equivalently, if M is ...