A herniated disc occurs when the soft inner material of a spinal disc bulges or leaks out, often compressing nearby nerves and causing pain, numbness, or weakness.