Was it the Roman occupation, and the overthrowing of their last King?
There's always room for more answers, but you might start with u/Iphikrates' answer here, in which he explains how the Spartans didn't really become the legendary "Spartans of old" until surprisingly late, and that much of the archetype of the pure warrior society was a retroactive construction after their decline had already begun.