We define and study the secondary Chern–Euler class for a general submanifold of a Riemannian manifold. Using this class, we define and study the index for a vector field with non-isolated singularities on a submanifold. As an application, we give conceptual proofs of a result of Chern.