To maintain mental endurance while running, focus on positive self-talk, set small milestones, practice mindfulness, visualize your goals, listen to motivational music or podcasts, and vary your running routine to keep it engaging and exciting.